mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
Updated the Holiday Code with more Wolfram calls because it was easy. #575
This commit is contained in:
@@ -114,6 +114,27 @@ 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
|
||||
###############################################################################
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 44 KiB |
Reference in New Issue
Block a user