- 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_lock_doorlock state: unlocked sequence: - service: lock.lock target: entity_id: lock.front_door_lock_doorlock - service: script.leave_home - conditions: - condition: state entity_id: lock.front_door_lock_doorlock state: locked sequence: - service: lock.unlock target: entity_id: lock.front_door_lock_doorlock - service: script.arrive_home mode: single