Skip to content

Instantly share code, notes, and snippets.

@grischard
Created January 12, 2024 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grischard/e0dd86ee482c331be1a497d5a39850dd to your computer and use it in GitHub Desktop.
Save grischard/e0dd86ee482c331be1a497d5a39850dd to your computer and use it in GitHub Desktop.
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