Updaated with Cahnnukah dates #288
This commit is contained in:
parent
c4859117eb
commit
d71547b1b0
|
@ -97,6 +97,13 @@ sensor:
|
|||
value_template: "{{ (value|replace(' days', '')) | int }}"
|
||||
unit_of_measurement: Days
|
||||
scan_interval: 43200
|
||||
|
||||
- platform: rest
|
||||
name: Chanukkah Countdown
|
||||
resource: !secret wolframalpha_chanukkah_api
|
||||
value_template: "{{ (value|replace(' days', '')) | int }}"
|
||||
unit_of_measurement: Days
|
||||
scan_interval: 43200
|
||||
###############################################################################
|
||||
# Automation that notifies of a Holiday "state" change
|
||||
###############################################################################
|
||||
|
|
|
@ -49,8 +49,8 @@ monthly_color_scene:
|
|||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 616 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 619
|
||||
and now().strftime("%m%d")|int <= 619-%}
|
||||
{%- elif now().strftime("%m%d")|int >= 704
|
||||
and now().strftime("%m%d")|int <= 704-%}
|
||||
RWB
|
||||
{%- elif now().strftime("%m%d")|int >= 1001
|
||||
and now().strftime("%m%d")|int <= 1031-%}
|
||||
|
|
|
@ -78,3 +78,4 @@ wolframalpha_xmas_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY
|
|||
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
|
||||
wolframalpha_chanukkah_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=How%20many%20days%20until%20chanukkah
|
||||
|
|
Loading…
Reference in New Issue