From 663c02a738165c6b403cdad614ae9ff9294386e1 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 7 Sep 2022 17:23:45 -0400 Subject: [PATCH] Added birthday awareness to some TTS announcements --- templates/speech/daily_briefing.yaml | 25 +++++++++++++++++++ templates/speech/kallen_morning_briefing.yaml | 2 +- templates/speech/welcome_home.yaml | 14 +++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index 27745ca..ae166b5 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -114,6 +114,19 @@ {% endif %} {% if is_state('binary_sensor.evening','on') %} + {% if is_state('sensor.anniversary_tony_s_birthday','0') %} + Hope you had a happy birthday Tony! + {% endif %} + {% if is_state('sensor.anniversary_tina_s_birthday','0') %} + Hope you had a happy birthday Tina! + {% endif %} + {% if is_state('sensor.anniversary_kallen_s_birthday','0') %} + Hope you had a happy birthday Colin! + {% endif %} + {% if is_state('sensor.anniversary_emmalynn_s_birthday','0') %} + Hope you had a happy birthday Emmalynn! + {% endif %} + {% if states.sensor.halloween_countdown.state | int == 1 %} Tomorrow is Halloween. I hope you have picked out a costume. I will be going as Tony. I'm scared just thinking about it! {% elif states.sensor.halloween_countdown.state | int < 30 %} @@ -154,6 +167,18 @@ {% if is_state('sensor.anniversary_wedding_anniversary','0') %} Happy Anniversary! It has been an amazing {{ states.sensor.anniversary_wedding_anniversary.attributes.years }} years! {% endif %} + {% if is_state('sensor.anniversary_tony_s_birthday','0') %} + Happy Birthday Tony! + {% endif %} + {% if is_state('sensor.anniversary_tina_s_birthday','0') %} + Happy Birthday Tina! + {% endif %} + {% if is_state('sensor.anniversary_kallen_s_birthday','0') %} + Happy Birthday Colin! + {% endif %} + {% if is_state('sensor.anniversary_emmalynn_s_birthday','0') %} + Happy Birthday Emmalynn! + {% endif %} {%- set event=states.calendar.national_holidays.attributes.message %} {% if 'Day' in event and 'National' in event%} {{ [ diff --git a/templates/speech/kallen_morning_briefing.yaml b/templates/speech/kallen_morning_briefing.yaml index 3ccf22f..d7f6c6a 100644 --- a/templates/speech/kallen_morning_briefing.yaml +++ b/templates/speech/kallen_morning_briefing.yaml @@ -6,7 +6,7 @@ It is {{ now().strftime("%I:%M %p") }} - {% if is_state('sensor.birthday_kallen', '0') %} + {% if is_state('sensor.anniversary_kallen_s_birthday', '0') %} Even birthday boys have to get dressed. So get to it. {% else %} {{ [ 'It is time to put some real clothes on. ', diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index f54f0b0..fdfc519 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -36,6 +36,20 @@ ] | random }} {% endif %}

+

+ {% if is_state('sensor.anniversary_tony_s_birthday','0') %} + Happy Birthday Tony! + {% endif %} + {% if is_state('sensor.anniversary_tina_s_birthday','0') %} + Happy Birthday Tina! + {% endif %} + {% if is_state('sensor.anniversary_kallen_s_birthday','0') %} + Happy Birthday Colin! + {% endif %} + {% if is_state('sensor.anniversary_emmalynn_s_birthday','0') %} + Happy Birthday Emmalynn! + {% endif %} +

As you are no doubt aware, the weather outside is {{ state_attr('weather.iron_nerd_weather_station','temperature') | round }} degrees