Refactored the notifications to use latest IOS. #1367
This commit is contained in:
parent
5e5088ea3a
commit
db15187bbd
|
@ -9,18 +9,6 @@
|
||||||
## Phyn Plus Water ShutOff - https://amzn.to/2Zy3sbJ
|
## Phyn Plus Water ShutOff - https://amzn.to/2Zy3sbJ
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
ios:
|
|
||||||
push:
|
|
||||||
categories:
|
|
||||||
- name: Phyn
|
|
||||||
identifier: 'phyn'
|
|
||||||
actions:
|
|
||||||
- identifier: 'PHYN_WATER_ON'
|
|
||||||
title: 'Turn Water Back On'
|
|
||||||
activationMode: 'background'
|
|
||||||
authenticationRequired: no
|
|
||||||
destructive: yes
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
###################################
|
###################################
|
||||||
## From IFTTT - Notifications
|
## From IFTTT - Notifications
|
||||||
|
@ -37,25 +25,21 @@ automation:
|
||||||
action: IFTTT_Phyn
|
action: IFTTT_Phyn
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|
||||||
- wait_template: >-
|
|
||||||
{{ states.sun.sun.state == 'above_horizon' }}
|
|
||||||
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data:
|
data:
|
||||||
title: 'Phyn Leak Detection'
|
title: 'Phyn Leak Detection'
|
||||||
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
|
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
ios_category: "phyn"
|
group: 'Phyn'
|
||||||
group: 'IFTTT_Phyn'
|
level: 'critical'
|
||||||
|
|
||||||
- alias: Turn Phyn Water On
|
- alias: Turn Phyn Water On
|
||||||
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
|
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: ios.notification_action_fired
|
event_type: mobile_app_notification_action
|
||||||
event_data:
|
event_data:
|
||||||
actionName: PHYN_WATER_ON
|
action: PHYN_WATER_ON
|
||||||
action:
|
action:
|
||||||
- service: ifttt.trigger
|
- service: ifttt.trigger
|
||||||
data: {"event":"phyn_water_on"}
|
data: {"event":"phyn_water_on"}
|
||||||
|
@ -65,7 +49,8 @@ automation:
|
||||||
title: 'Phyn Leak Detection'
|
title: 'Phyn Leak Detection'
|
||||||
value1: 'Request Recieved. Attempting to Turn the Water back on.'
|
value1: 'Request Recieved. Attempting to Turn the Water back on.'
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
group: 'IFTTT_Phyn'
|
group: 'Phyn'
|
||||||
|
level: 'time-sensitive'
|
||||||
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
|
|
Loading…
Reference in New Issue