Created
January 12, 2024 18:34
-
-
Save grischard/e0dd86ee482c331be1a497d5a39850dd 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-Relock Elevator Door | |
description: "" | |
trigger: | |
- platform: state | |
entity_id: input_boolean.auto_lock_elevator_door | |
to: 'off' | |
for: | |
hours: 5 | |
- platform: state | |
entity_id: switch.elevator_door | |
to: 'on' | |
for: | |
hours: 5 | |
condition: | |
- condition: state | |
entity_id: input_boolean.auto_lock_elevator_door | |
state: 'off' | |
for: | |
hours: 5 | |
- condition: state | |
entity_id: switch.elevator_door | |
state: 'on' | |
for: | |
hours: 5 | |
action: | |
- service: input_boolean.turn_on | |
entity_id: input_boolean.auto_lock_elevator_door |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment