mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-07-21 11:17:02 +00:00
Updated the Holiday Code with more Wolfram calls because it was easy. #575
This commit is contained in:
parent
182bcfd91a
commit
6bd470003f
@ -114,12 +114,33 @@ sensor:
|
|||||||
value_template: "{{ (value|replace(' days', '')) | int }}"
|
value_template: "{{ (value|replace(' days', '')) | int }}"
|
||||||
unit_of_measurement: Days
|
unit_of_measurement: Days
|
||||||
scan_interval: 43200
|
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 that notifies of a Holiday "state" change
|
||||||
###############################################################################
|
###############################################################################
|
||||||
automation:
|
automation:
|
||||||
- alias: Notify Holiday State Change
|
- alias: Notify Holiday State Change
|
||||||
|
|
||||||
initial_state: true
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 44 KiB |
Loading…
x
Reference in New Issue
Block a user