alias: Door Open
description: Notify target if door is open.
triggers:
- alias: When Door Sensor changes from Closed to Open
trigger: state
entity_id:
- binary_sensor.door_sensor_contact
from: "off"
to: "on"
conditions: []
actions:
- action: notify.notify_to_all_devices
metadata: {}
data:
title: Door Open
message: Someone at the door
data:
car_ui: true
channel: DoorOpen
push:
sound: Doorbell.caf
- repeat:
while:
- condition: state
entity_id: binary_sensor.door_sensor_contact
state: "on"
for:
hours: 0
minutes: 10
seconds: 0
sequence:
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- action: notify.notify_to_all_devices
metadata: {}
data:
title: Door Open
message: WARNING!! Door open
data:
car_ui: true
channel: DoorOpenAlert
push:
sound: Alert_SpartanConnecting_Haptic.caf
mode: single
The goal is to notify on door open and if it is left open for more then 10 mins then notify again forever or until closed with 10 second delay between each notification. This does work for notifying when door opens but I never get notified if its left open.