I have an automation set that notifies me if a door or window has been opened or closed.
One of the doors can be open/closed a few times in the space of 5 minutes.
I would like the automation to wait for at least 15 minutes before it notifies me again of an open/close.
I do have another automation that does the reverse of this one (from on to off)
How do I add this to my automation.
- id: "719e4e62-65f3-4222-8ba1-108e1e3022e6"
alias: "Door and Window Monitor Open"
description: "Door and Window Monitor Open"
trigger:
- platform: state
entity_id:
- binary_sensor.contact_sensor_front_door_contact
- binary_sensor.contact_sensor_garage_door_interior_contact
- binary_sensor.contact_sensor_greatroom_french_door_contact
- binary_sensor.contact_sensor_greatroom_window_1_contact
- binary_sensor.contact_sensor_greatroom_window_2_contact
- binary_sensor.contact_sensor_guestroom_window_contact
- binary_sensor.contact_sensor_kitchen_window_contact
- binary_sensor.contact_sensor_master_bedroom_window_1_contact
- binary_sensor.contact_sensor_master_bedroom_window_2_contact
- binary_sensor.contact_sensor_office_window_contact
from: 'off'
to: 'on'
condition: []
action:
- service: notify.brooks5123
data_template:
title: Alert
message: >
The {{ trigger.to_state.name }} was {{ 'opened' if trigger.to_state.state == 'on' else 'closed' }}
mode: single