Hi - I want to monitor a window and notify all family members at home to close it.
I did write an automation for one person (s. below) but it seems clunky to repeat that four times (number of people here). Especially since there are likely more applications with a similar problem.
Is there maybe some way to create a dynamic list of persons who satisfy certain conditions?
Thanks.
- id: "1645375982893"
alias: Klofenster lange offen
description: ""
trigger:
- type: opened
platform: device
device_id: 0cf51fc7a89c5c2cfefa1180544adf30
entity_id: binary_sensor.klofenster
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: person.markus
state: home
action:
- service: notify.mobile_app_hyrule
data:
message: Bitte Klofenster schliessen!
mode: single
1 post - 1 participant