Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Garage Door Auto Close
- alias: Garage Door Auto Close
- description: ""
- trigger:
- - platform: state
- entity_id:
- - cover.garage_door
- for:
- hours: 1
- minutes: 0
- seconds: 0
- to: open
- condition:
- - condition: state
- entity_id: binary_sensor.garage_motion_group
- for:
- hours: 0
- minutes: 30
- seconds: 0
- state: ""
- - condition: state
- entity_id: binary_sensor.garage_interior_door_intrusion
- state: "off"
- for:
- hours: 0
- minutes: 30
- seconds: 0
- action:
- - if:
- - condition: state
- entity_id: binary_sensor.garage_door_closed
- state: "off"
- for:
- hours: 0
- minutes: 45
- seconds: 0
- then:
- - service: cover.close_cover
- data: {}
- target:
- entity_id: cover.garage_door
- - wait_for_trigger:
- - platform: state
- entity_id:
- - cover.garage_door
- to: closed
- timeout:
- hours: 0
- minutes: 0
- seconds: 12
- milliseconds: 0
- - if:
- - condition: state
- entity_id: cover.garage_door
- state: closed
- then:
- - service: notify.mobile_app_[my_phone]
- data:
- message: Garage door closed automatically after 1 hour
- - if:
- - condition: state
- entity_id: binary_sensor.garage_door_closed
- state: "off"
- then:
- - service: notify.mobile_app_[my_phone]
- data:
- message: >-
- Garage door attempted to close automatically after 1 hour but
- failed
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment