1
0
ansible-home-assistant/configuration/automations/ios.yaml

71 lines
1.6 KiB
YAML

- id: ios-door-lock
alias: '[ios] Door Lock'
mode: single
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Door Lock Toggle
action:
- choose:
- 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
- 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
- id: ios-good-night
alias: '[ios] Good Night'
mode: single
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: 'Good Night'
action:
- service: script.good_night
- id: ios-good-morning
alias: '[ios] Good Morning'
mode: single
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: 'Good Morning'
action:
- service: script.good_morning
- id: ios-leave-home
alias: '[ios] Leave Home'
mode: single
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: 'Leave Home'
action:
- service: script.leave_home
- id: ios-arrive-home
alias: '[ios] Arrive Home'
mode: single
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: 'Arrive Home'
action:
- service: script.arrive_home