Hi,
i’ve got an automation which sends me a notification whenever a door is still open. On the “conditions” if a have a list of contact sensors i check with the “OR” condition.
Now i want to send a notification with the name of the door that is still open. But i cannot get my head around it on what to check for. And i cannot see it from the trace of the automation as well.
The Automation looks as follows:
id: 'xxx'
alias: 'Security: There are doors still open'
description: ''
trigger:
- platform: state
entity_id:
- alarm_control_panel.alarm
to: arming
from: disarmed
condition:
- condition: or
conditions:
- type: is_open
condition: device
device_id: xxx
entity_id: binary_sensor.front_door
domain: binary_sensor
- type: is_open
condition: device
device_id: xxx
entity_id: binary_sensor.back_door
domain: binary_sensor
action:
- service: notify.mobile_app_xxx
data:
title: Security
message: Doors are still open {{ name of the door/s }}
mode: single
Thanks for your advice.