Add Front door NFC Tag
This commit is contained in:
parent
eb8368a6a9
commit
3a066f3fbb
26
configuration/automations/nfc.yaml
Normal file
26
configuration/automations/nfc.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
- id: nfc-frontdoor
|
||||
alias: '[NFC] Front door'
|
||||
trigger:
|
||||
- platform: tag
|
||||
tag_id: 404bfd9a-36d4-4571-a52e-210daafbf138
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: lock.front_door_25f246fe_door_lock
|
||||
state: unlocked
|
||||
sequence:
|
||||
- service: lock.lock
|
||||
target:
|
||||
entity_id: lock.front_door_25f246fe_door_lock
|
||||
- service: script.leave_home
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: lock.front_door_25f246fe_door_lock
|
||||
state: locked
|
||||
sequence:
|
||||
- service: lock.unlock
|
||||
target:
|
||||
entity_id: lock.front_door_25f246fe_door_lock
|
||||
- service: script.arrive_home
|
||||
mode: single
|
Loading…
Reference in New Issue
Block a user