I have this simple automation:
alias: Door Check Open
description: ""
trigger:
- platform: time_pattern
minutes: /10
condition:
- condition: or
conditions:
- type: is_open
condition: device
device_id: 9113164a9fdaacf871759be565696880
entity_id: beaffccdd334a8121d4b30dfa4ad4f48
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
- type: is_open
condition: device
device_id: 6f4bcf1263057e1c8dc722e7af480e52
entity_id: 8f017ef442951d42737650131c9b52a1
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
- type: is_open
condition: device
device_id: d55457bbdee2176c3832ea2fecc5fcb2
entity_id: c1064f78cfb1b93b6b1ed5aa95db4eba
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
- type: is_open
condition: device
device_id: f1af0c6137cc789eb901bd956941fb3c
entity_id: 810d5a0e0c6b5852ad92847889ab1dbb
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
- type: is_open
condition: device
device_id: eb18dc669227bf64f82a33a98f385461
entity_id: 1b4fe0a7fd48e33966ed7e7168229086
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
action:
- service: notify.cadillac_home
data:
message: One of the door is open
target:
- xxxxxxxxxxxx
- xxxxxxxxxxxx
mode: single
In essence the automation checks door sensors and fires an sms if any are left open for longer than 10 min. Works well, but ideally I would like to know which of the door is left open. Can this be done ? How ?
Thanks