1
0
ansible-home-assistant/configuration/automations/mobile-actions.yaml

51 lines
1.2 KiB
YAML

- id: mobile_action-lock_door
alias: '[Mobile-action] Lock door'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LOCK_DOOR
action:
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock
- id: mobile_action-unlock_door
alias: '[Mobile-action] Unlock door'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: UNLOCK_DOOR
action:
- service: lock.unlock
target:
entity_id: lock.front_door_25f246fe_door_lock
- id: mobile_action-leave_home
alias: '[Mobile-action] Leave home automation'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LEAVE_HOME
action:
- service: script.leave_home
- id: mobile_action-arrive_home
alias: '[Mobile-action] Arrive home automation'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: ARRIVE_HOME
action:
- service: script.arrive_home