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

98 lines
2.4 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-arrive_home_unlock
alias: '[Mobile-action] Arrive home & unlock automation'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: ARRIVE_HOME_UNLOCK
action:
- service: script.arrive_home
- service: lock.unlock
target:
entity_id: lock.front_door_lock_doorlock
- id: mobile_action-clothes_put_away
alias: '[Mobile-action] Clothes put 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
- id: mobile_action-meal_eaten
alias: '[Mobile-action] Meal eaten'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: MEAL_EATEN
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.meal_helper
- service: input_boolean.turn_off
target:
entity_id: input_boolean.meal_alert