2023-06-12 21:56:22 +00:00
|
|
|
- id: hallway_front_door_button_lock
|
2021-07-05 20:55:26 +00:00
|
|
|
alias: '[Front Door] Button Lock'
|
|
|
|
trigger:
|
|
|
|
- device_id: d30d25752f5e6741eb8d9562f5b44897
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
2021-08-11 22:37:29 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.front_door_open_close
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- wait_for_trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.front_door_open_close
|
|
|
|
to: 'off'
|
2021-07-05 20:55:26 +00:00
|
|
|
- service: lock.lock
|
|
|
|
target:
|
2022-10-20 17:11:59 +00:00
|
|
|
entity_id: lock.front_door_lock_doorlock
|
2021-07-05 20:55:26 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: hallway_front_door_button_unlock
|
2021-07-05 20:55:26 +00:00
|
|
|
alias: '[Front Door] Button Unlock'
|
|
|
|
trigger:
|
|
|
|
- device_id: d30d25752f5e6741eb8d9562f5b44897
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
condition:
|
|
|
|
- condition: not
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Away
|
|
|
|
action:
|
|
|
|
- service: lock.unlock
|
|
|
|
target:
|
2022-10-20 17:11:59 +00:00
|
|
|
entity_id: lock.front_door_lock_doorlock
|