Add automation for lock button
This commit is contained in:
parent
5e10857e39
commit
fdcf0ff92b
31
configuration/automations/hallway-lock-button.yaml
Normal file
31
configuration/automations/hallway-lock-button.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
- id: hallway-front-door-button-lock
|
||||||
|
alias: '[Front Door] Button Lock'
|
||||||
|
trigger:
|
||||||
|
- device_id: d30d25752f5e6741eb8d9562f5b44897
|
||||||
|
domain: zha
|
||||||
|
platform: device
|
||||||
|
type: remote_button_short_press
|
||||||
|
subtype: turn_off
|
||||||
|
action:
|
||||||
|
- service: lock.lock
|
||||||
|
target:
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
||||||
|
|
||||||
|
- id: hallway-front-door-button-unlock
|
||||||
|
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:
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
Loading…
Reference in New Issue
Block a user