1
0

Update phone automations

switch order script with notification
  add debug automation
This commit is contained in:
pgrondek 2021-02-02 23:57:01 +01:00
parent 73b03fb0bb
commit bd42bcd8a6

View File

@ -13,10 +13,10 @@
entity_id: device_tracker.sm_g965f entity_id: device_tracker.sm_g965f
type: is_home type: is_home
action: action:
- service: script.goodnight
- service: notify.mobile_app_sm_g965f - service: notify.mobile_app_sm_g965f
data: data:
message: Sleep automation message: Sleep automation
- service: script.good_night
- id: phone-sleep-end - id: phone-sleep-end
alias: '[Phone] Sleep end' alias: '[Phone] Sleep end'
@ -33,7 +33,18 @@
entity_id: device_tracker.sm_g965f entity_id: device_tracker.sm_g965f
type: is_home type: is_home
action: action:
- service: script.goodmorning
- service: notify.mobile_app_sm_g965f - service: notify.mobile_app_sm_g965f
data: data:
message: Sleep automation message: Sleep automation
- service: script.good_morning
- id: phone-webhook
alias: '[Phone] Webhook'
mode: single
trigger:
- platform: webhook
webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512
action:
- service: notify.mobile_app_sm_g965f
data:
message: 'Automation {{ trigger.event.data.event }}'