#How to play announcement back to entity that triggered?

1 messages · Page 1 of 1 (latest)

ancient cypress
#

Hi, I'd like to play an announcement back to the entity that triggered an automation. In my case, I want to ask a my voice assitant preview to tell me a joke, and hear the audio from the satellite/assistant that handled the trigger/sentence.

Maybe I'm approaching this the wrong way. Thinking something like this:

alias: Tell Me A Joke
description: ""
triggers:
  - trigger: conversation
    command: tell me a joke
conditions: []
actions:
  - action: assist_satellite.announce
    metadata: {}
    data:
      message: >
    {% set jokes = [
      "Why did the teddy bear say no to dessert? Because it was stuffed!",
      "Why are skeletons so calm? Because nothing gets under their skin!",
      "Why was six afraid of seven? Because 7, 8 (ate), 9!",
    ] %} {{ jokes | random }}
      preannounce: true
    target:
      entity_id: "{{ trigger.entity_id }}"
mode: single
quaint apex
#

Don't use assist_satellite.announce.
Use "set conversation response" action. It's made for this.