Help Please,
This is a general reminder to send notice when any of the doors has opened more than 30 minutes.
It can be triggered and send corresponding notice, the only question is it can not stop even the door is closed.
I cannot figure out why.
alias: "Reminder: long door open"
description: Door has been opened for a long time
trigger:
- platform: state
entity_id:
- binary_sensor.garage_door_sensor
- binary_sensor.door_contact_sensor_4f9f
- binary_sensor.door_contact_sensor_4ee1
to: "on"
for:
hours: 0
minutes: 30
seconds: 0
condition: []
action:
- repeat:
until:
- condition: template
value_template: "{{ is_state(trigger.to_state.state, \"off\") }}"
sequence:
- service: notify.pixelGroup
data:
title: "{{ area_id(trigger.entity_id) }}"
message: The door has been open for a long time.
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- service: notify.pixelgroup
data:
message: Door is closed.
title: OK
mode: single