This should auto close a ratgdo connected garage door opener.
triggers:
- trigger: state
entity_id:
- cover.ratgdo32_9a35fc_door
to: open
for:
hours: 0
minutes: 0
seconds: 30
- trigger: state
entity_id:
- binary_sensor.ratgdo32_9a35fc_obstruction
to: "off"
for:
hours: 0
minutes: 0
seconds: 30
conditions:
- condition: state
entity_id: cover.ratgdo32_9a35fc_door
state: open
for:
hours: 0
minutes: 0
seconds: 30
- condition: state
entity_id: binary_sensor.ratgdo32_9a35fc_obstruction
state: "off"
for:
hours: 0
minutes: 0
seconds: 30
actions:
- device_id: 34e0f....
domain: cover
entity_id: d19e....
type: close
- delay:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
- repeat:
until:
- condition: state
entity_id: cover.ratgdo32_9a35fc_door
state: closed
sequence:
- action: notify.email_notify
metadata: {}
data:
message: Garage Door has not yet closed.
title: Garage Door Not Closed
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- action: notify.email_notify
metadata: {}
data:
message: Garage Door Has Closed
title: Garage Door has Closed
mode: single