Hi,
I’m rather new to HA and not a programmer so, please, bare with me.
I want to create an automation to send a notification if garage doors are left open (door/window sensor) for longer than 15 minutes between 20:00 and 6:00. My automation only works if someone opens the doors in that time frame, but not if the doors were opened already sooner than that, let’s say at 18:00 and then left open. I want to cover that scenario as well.
alias: Garage door left open
description: ""
triggers:
- type: opened
device_id: 02e5bbb61f0f64c4fa1a983ce6880ac4
entity_id: 5aceddab2bf2ccf556ab09e29d5235b7
domain: binary_sensor
trigger: device
for:
hours: 0
minutes: 15
seconds: 0
conditions:
- condition: time
after: "20:00:00"
before: "06:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
actions:
- action: notify.mobile_app_google_pixel_watch
metadata: {}
data:
message: My message
- action: notify.mobile_app_pixel_7_pro
metadata: {}
data:
message: My message
mode: single
Thank you for your help.