From 286f997b2cf99cb304163ed8894b0085af1920db Mon Sep 17 00:00:00 2001 From: ccostan Date: Fri, 15 Nov 2019 19:16:23 -0500 Subject: [PATCH] Updated with Episode 39. (https://www.vcloudinfo.com/2019/11/adding-days-until-sensor-to-my-home-assistant-speech-routines.html) --- config/configuration.yaml | 2 +- config/packages/holiday.yaml | 2 +- config/script/tweet_youtube.yaml | 3 +++ config/templates/speech/briefing.yaml | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/configuration.yaml b/config/configuration.yaml index 4b42c0ad..7aa6971c 100755 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -88,7 +88,7 @@ http: ssl_certificate: !secret ssl_certificate ssl_key: !secret ssl_key ip_ban_enabled: True - login_attempts_threshold: 3 + login_attempts_threshold: 2 frontend: javascript_version: latest diff --git a/config/packages/holiday.yaml b/config/packages/holiday.yaml index 69071a06..13c7145e 100755 --- a/config/packages/holiday.yaml +++ b/config/packages/holiday.yaml @@ -81,7 +81,7 @@ sensor: scan_interval: 43200 - platform: rest - name: Christams Countdown + name: Christmas Countdown resource: !secret wolframalpha_xmas_api value_template: "{{ (value|replace(' days', '')) | int }}" unit_of_measurement: Days diff --git a/config/script/tweet_youtube.yaml b/config/script/tweet_youtube.yaml index 7d088923..1545c3e1 100755 --- a/config/script/tweet_youtube.yaml +++ b/config/script/tweet_youtube.yaml @@ -198,6 +198,9 @@ tweet_youtube_engine_setup: ], "S02E38": [ "How to Build Home Assistant Sensors using Wolfram Alpha (https://www.vcloudinfo.com/2019/10/how-to-build-home-assistant-sensors-using-wolfram-alpha.html)" + ], + "S02E39": [ + "Adding Days Until Sensor to my Home Assistant Speech routines (https://www.vcloudinfo.com/2019/11/adding-days-until-sensor-to-my-home-assistant-speech-routines.html)" ] } %} diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index f7bcc072..a22d8bb0 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -123,6 +123,7 @@ {% endif %} {%- endmacro -%} + {# YOUTUBE VIDEO ********* https://www.vcloudinfo.com/2019/11/adding-days-until-sensor-to-my-home-assistant-speech-routines.html #} {%- macro days_until() -%} {% set month=states("sensor.date").split('-')[1] | int %} {%- if month == 4 or month == 5 -%} @@ -132,7 +133,7 @@ {%- elif month == 9 or month == 10 -%} and don't forget, there are {{ states.sensor.halloween_countdown.state }} days until Halloween! {%- elif month == 11 or month == 12 -%} - and don't forget, there are {{ states.sensor.xmas_countdown.state }} days until Christmas! + and don't forget, there are {{ states.sensor.christmas_countdown.state }} days until Christmas! {% endif %} {%- endmacro -%}