How to know which Atom Echo is triggering

Little question about multiple Atom Echos and intent_scripts. Is there any way to know by template which atom echo is triggering the script? I have been using {{ _intent.siteid }} with rhasspy but that does not seem to work with atom echos via esphome.

What I want to achieve: When I sit in the livingroom and speak to the atom echo there, I want the music to start/stop playing on command without saying in which room I am. When I sit in the bedroom and speak to the atom echo there, same thing, I just want to say things like “stop the music” and the intent_script should know that the music should be turned on/off in the respective room automatically.

1 Like

Ok, found the answer…that does it…

{% for room in states.binary_sensor %}{% if "_atomecho_assist_in_progress" in room.entity_id and room.state == 'on' %}{{ area_name(room.entity_id) | lower }}{% endif %}{% endfor %}
1 Like