in my current setup I noticed this:
opening garage door, waiting, recieving notification,(good)
opening tellet door, waiting , recieving notification,(good)
closing garage door, notification goes away.(good)
closing tellet door, notification remains.(cancelled by the above?)
alias: Doors left open
description: ""
triggers:
- trigger: state
entity_id:- binary_sensor.tellet_contact
for:
hours: 0
minutes: 0
seconds: 8
from: "off"
to: "on"
id: tellet
- binary_sensor.tellet_contact
- trigger: state
entity_id:- binary_sensor.garage_door_contact
for:
hours: 0
minutes: 0
seconds: 8
from: "off"
to: "on"
id: garage-person
conditions: []
actions:
- binary_sensor.garage_door_contact
- action: notify.notify
data:
title: Security Alert
message: "Door: {{ door_id }} is left open"
data:
tag: door-alert-{{ door_id }} - wait_for_trigger:
- trigger: template
value_template: "{{ is_state(door_entity, 'off') }}"
- trigger: template
- action: notify.notify
data:
message: clear_notification
data:
tag: door-alert-{{ door_id }}
variables:
door_entity: "{{ trigger.entity_id }}"
door_id: "{{ trigger.id }}"
mode: parallel
max: 10