Updated the Holiday Code with more Wolfram calls because it was easy. #575

pull/722/head
ccostan 6 years ago
parent 182bcfd91a
commit 6bd470003f

@ -114,12 +114,33 @@ sensor:
value_template: "{{ (value|replace(' days', '')) | int }}"
unit_of_measurement: Days
scan_interval: 43200
- platform: rest
name: Labor Day Countdown
resource: !secret wolframalpha_labor_api
value_template: "{{ (value|replace(' days', '')) | int }}"
unit_of_measurement: Days
scan_interval: 43200
- platform: rest
name: Memorial Day Countdown
resource: !secret wolframalpha_memorial_api
value_template: "{{ (value|replace(' days', '')) | int }}"
unit_of_measurement: Days
scan_interval: 43200
- platform: rest
name: Thanksgiving Day Countdown
resource: !secret wolframalpha_thanksgiving_api
value_template: "{{ (value|replace(' days', '')) | int }}"
unit_of_measurement: Days
scan_interval: 43200
###############################################################################
# Automation that notifies of a Holiday "state" change
###############################################################################
automation:
- alias: Notify Holiday State Change
initial_state: true
trigger:
- platform: state

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Loading…
Cancel
Save

Powered by TurnKey Linux.