I created the automation below so that when our cat sitter (Neighbor) unlocks the front door, the security alarm will be disabled. When leaving and the door is locked, the security alarm will be enabled. Then I tested it. I found myself unlocking the door and stepping inside the house, then wanting to lock the door, which would enable the alarm with me in the house.
I was thinking a delay might be in order, or at least a time in the "For" section of the triggers. Any suggestions how best to handle this would be appreciated!
-Thanks
alias: Front Door Lock - Vacation Mode
description: ""
triggers:
- trigger: state
entity_id:
- lock.touchpad_electronic_deadbolt
from:
- unlocked
to:
- locked
id: locked
- trigger: state
entity_id:
- lock.touchpad_electronic_deadbolt
to:
- unlocked
from:
- locked
id: unlocked
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- locked
sequence:
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
enabled: false
- action: input_boolean.turn_on
metadata: {}
target:
entity_id: input_boolean.security_alarm_switch
data: {}
- conditions:
- condition: trigger
id:
- unlocked
sequence:
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.security_alarm_switch
data: {}
mode: single
