TTS with variables - where to find "how to" documentation

Hi,

i want to create notifications for the alexa integration, but need to

  • include values / states from entities
  • modify the message based on state/numeric of entities (because all i know right now is to use an if/then)

Thanks!

I suggest you review the documentation for Templating.

Hi,

I have an automation example that reads my google calendar, it’s basically just curly braces {{ }}, hope it helps:

alias: "TTS_reminder_evening_before_trash_calendar "
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "-2:0:30"
    entity_id: calendar.trash_calendar
  - platform: calendar
    event: start
    offset: "-3:0:30"
    entity_id: calendar.trash_calendar
  - platform: calendar
    event: start
    offset: "-4:0:30"
    entity_id: calendar.trash_calendar
condition: []
action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.nest_esszimmer
      message: Morgen ist {{ states.calendar.trash_calendar.attributes.message }}
  - service: notify.mobile_app_samosa
    data:
      message: Morgen ist {{ states.calendar.trash_calendar.attributes.message }}
  - service: notify.mobile_app_sm_a336b
    data:
      message: Morgen ist {{ states.calendar.trash_calendar.attributes.message }}
mode: queued
max: 10

Thanks!

I see you call google_translate to convert and then use the speaker as the target.
Correct?