mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 10:46:20 +00:00 
			
		
		
		
	Weird issues with the command line Sensor so Rolled back. #288
This commit is contained in:
		| @@ -62,17 +62,29 @@ 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: command_line | ||||
|   - platform: rest | ||||
|     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" | ||||
|     resource: !secret wolframalpha_halloween_api | ||||
|     value_template: "{{ (value|replace(' days', '')) | int }}" | ||||
|     unit_of_measurement: 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 | ||||
|     unit_of_measurement: days | ||||
|   - platform: rest | ||||
|     name: Christams Countdown | ||||
|     resource: !secret wolframalpha_xmas_api | ||||
|     value_template: "{{ (value|replace(' days', '')) | int }}" | ||||
|     unit_of_measurement: Days | ||||
|     scan_interval: 43200 | ||||
|  | ||||
|   - platform: rest | ||||
|   | ||||
| @@ -73,6 +73,8 @@ cloud_user_pool: 'SuperSecretPlace' | ||||
| cloud_relayer: 'SuperSecretWebThingy' | ||||
| vantage_api: LONGAPIKEYFORFREE | ||||
| minecraft: private_server.com | ||||
| wolframalpha_halloween_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20halloween | ||||
| wolframalpha_xmas_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20christmas | ||||
| wolframalpha_easter_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20easter | ||||
| wolframalpha_mothersday_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20mothers%20day | ||||
| wolframalpha_fathersday_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20fathers%20day | ||||
|   | ||||
		Reference in New Issue
	
	Block a user