Created
February 21, 2024 21:59
-
-
Save northrup/44cf1581f6247ee9d678305a94973047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Auto Close Cars Garage Door | |
description: "" | |
trigger: | |
- platform: state | |
to: open | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 0 | |
entity_id: | |
- cover.garage_cars_door | |
id: door_open | |
- platform: state | |
entity_id: | |
- binary_sensor.garage_cars_motion | |
to: "on" | |
id: garage_motion | |
- platform: event | |
event_type: timer.finished | |
event_data: | |
entity_id: timer.garage_cars | |
id: timer_finished | |
- platform: state | |
entity_id: | |
- cover.garage_cars_door | |
to: closed | |
id: door_closed | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- door_open | |
sequence: | |
- service: timer.start | |
data: {} | |
target: | |
entity_id: timer.garage_cars | |
- conditions: | |
- condition: trigger | |
id: | |
- garage_motion | |
- condition: state | |
entity_id: cover.garage_cars_door | |
attribute: current_position | |
state: 100 | |
- condition: state | |
entity_id: group.residents | |
state: home | |
sequence: | |
- service: timer.start | |
data: {} | |
target: | |
entity_id: timer.garage_cars | |
- conditions: | |
- condition: trigger | |
id: | |
- timer_finished | |
sequence: | |
- service: cover.close_cover | |
data: {} | |
target: | |
entity_id: cover.garage_cars_door | |
- conditions: | |
- condition: trigger | |
id: | |
- door_closed | |
- condition: state | |
entity_id: timer.garage_cars | |
state: active | |
sequence: | |
- service: timer.cancel | |
data: {} | |
target: | |
entity_id: timer.garage_cars | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment