#Using Variables in TTS action - identify member of group that triggered?

1 messages · Page 1 of 1 (latest)

umbral shuttle
#

I am trying to build an automation that will notice when and window or door is opened and send a TTS message to my speakers stating WHICH window or door has opened.

I'm trying to avoid making a per-sensor automation, where this would be easy, albeit painful to create and maintain.

So far, I have set up a binary sensor group that contains all of the 'opening' entities associated with my window and door sensors. This lets me trigger the automation based on an appropriate state change for any of the group members.

In my 'Say a TTS message with cloud' is it possible for me to use a variable which identifies the specific binary sensor group member caused the trigger?

Something like, message: "Heads up! The <variable> has just been opened."

Thanks!

shell prism
#

Try to add in your code something like: message: "{{ trigger.entity_id }} open" ?

umbral shuttle