Is there a way to use the Trigger entity within an Alexa TTS announcement?
I currently have a bedtime routine (as I am sure we all do!) which will turn off lights, set alarms, HVAC etc.
I trigger it with Alexa (Alexa changes a toggle, that triggers the automation and resets the toggle for the next day).
As part of the actions, I would like to check if any doors/windows within a list are open. If they are, I would like to use the notify.alexa
service to tell me. But I would like to include the guilty entity in the response.
Along the lines of:
action:
if:
- condition: or
conditions:
- type: is_open
condition: device
device_id: 80c14596b45440d960f19f2048d0510d
entity_id: binary_sensor.front_door
domain: binary_sensor
- type: is_open
condition: device
device_id: 4a2100b162f41bae919ef1d45dd8e666
entity_id: binary_sensor.lounge_window
domain: binary_sensor
#Lets say the Patio door (below) is open!
- type: is_open
condition: device
device_id: 6d5c85e2f0679194964493cee3c3e251
entity_id: binary_sensor.patio_door
domain: binary_sensor
- type: is_open
condition: device
device_id: 6d5c85e2f0679194964493cee3c3e251
entity_id: binary_sensor.back_door
domain: binary_sensor
then:
- service: notify.alexa_media_bedroom_dot
data:
message: The [Patio Door] is open
Is it doable? Or would I need to create named triggers for each and a plethora of “if” functions?