Updaated with Cahnnukah dates #288

This commit is contained in:
ccostan 2019-10-21 17:33:31 -04:00
parent c4859117eb
commit d71547b1b0
3 changed files with 10 additions and 2 deletions

View File

@ -97,6 +97,13 @@ 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: 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 # Automation that notifies of a Holiday "state" change
############################################################################### ###############################################################################

View File

@ -49,8 +49,8 @@ monthly_color_scene:
mothers_day mothers_day
{%- elif now().strftime("%m%d")|int == 616 -%} {%- elif now().strftime("%m%d")|int == 616 -%}
fathers_day fathers_day
{%- elif now().strftime("%m%d")|int >= 619 {%- elif now().strftime("%m%d")|int >= 704
and now().strftime("%m%d")|int <= 619-%} and now().strftime("%m%d")|int <= 704-%}
RWB RWB
{%- elif now().strftime("%m%d")|int >= 1001 {%- elif now().strftime("%m%d")|int >= 1001
and now().strftime("%m%d")|int <= 1031-%} and now().strftime("%m%d")|int <= 1031-%}

View File

@ -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_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_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_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