I’m exposing a script to google assistant. I execute the script by voice control over Google Home. In the script I’m hard coding 'media_player.entryway_speaker'
as the device to use to “talk”. How can I change this so that whatever device started this script is used instead?
timer_remaining:
sequence:
- condition:
condition: state
entity_id: 'timer.frontdoor'
state: 'active'
- service: timer.pause
entity_id: timer.frontdoor
- service: tts.google_say
data_template:
entity_id: 'media_player.entryway_speaker'
message: "{{state_attr('timer.frontdoor', 'remaining')[2:] | replace(':',' ')}}"
- service: timer.start
entity_id: timer.frontdoor