Update to Command Line Sensors - Breaking Changes Fix.

This commit is contained in:
ccostan
2023-06-19 16:12:32 -04:00
parent c6ec82c21e
commit bfc7ece391
11 changed files with 36 additions and 43 deletions

View File

@@ -62,16 +62,6 @@ sensor:
################################################################################
# Countdown Sesor using WolfRam Alpha Natural language queries
################################################################################
#
# - platform: command_line
# name: Halloween Countdown
# command: "HALLOWEEN=`date -d 'Oct 31' +%j | awk '{print $1 + 0}'`; TODAY=`date +%j | awk '{print $1 + 0}'`; DAYS=$(($HALLOWEEN - $TODAY)); echo $DAYS"
# scan_interval: 43200
#
# - platform: command_line
# command: "XMAS=`date -d 'Dec 25' +%j | awk '{print $1 + 0}'`; TODAY=`date +%j | awk '{print $1 + 0}'`; DAYS=$(($XMAS - $TODAY)); echo $DAYS"
# name: Christmas Countdown
# scan_interval: 43200
- platform: rest
name: Halloween Countdown