I have something like this, I’ve removed some of the extra fluff. Right now, the logs are giving me. Error on init tts: No TTS from google for ‘’, which makes me believe I’m not passing the variables correctly. Any ideas on what I’m missing?
{% macro morning_briefing_generic() -%}
{{ morning_greetings() }}
{{ family_member_names() }}
{{ todays_day() }}
{{ weather_sentence() }}
{{ morning_closing_sentence() }}
{%- endmacro %}
{% macro morning_closing_sentence() -%}
{% set closings = [
“Have a great day!”,
“Enjoy your day.”,
“Have fun today!”,
“Go get 'em!”,
“Be awesome!”
] %}
{{closings|random}}
{%- endmacro %}
sequence:
- service: tts.google_say
entity_id: media_player.whole_house
data_template:
notification_id: ‘morning_briefing_generic’
message: !include …/templates/brief.yaml
alias: "Wake Up Call"
trigger:
- platform: time
minutes: '/10'
hours: 7
action:
service: script.chromecast_message
data_template:
title: test
message: '{{morning_briefing_generic()}}'