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

66 lines
1.6 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_lock_doorlock
- 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_lock_doorlock
- 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
- id: mobile_action-clothes_put_away
alias: '[Mobile-action] Clothes puth away'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: CLOTHES_PUT_AWAY
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.washing_clothes_dry