diff --git a/config/packages/holiday.yaml b/config/packages/holiday.yaml index 0ac2abe8..959027f8 100755 --- a/config/packages/holiday.yaml +++ b/config/packages/holiday.yaml @@ -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 ############################################################################### diff --git a/config/script/monthly_color_scene.yaml b/config/script/monthly_color_scene.yaml index c717714a..858a84e5 100755 --- a/config/script/monthly_color_scene.yaml +++ b/config/script/monthly_color_scene.yaml @@ -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-%} diff --git a/config/travis_secrets.yaml b/config/travis_secrets.yaml index 64cd208b..ae4bf487 100755 --- a/config/travis_secrets.yaml +++ b/config/travis_secrets.yaml @@ -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