Skip to content

Commit

Permalink
Refactored the notifications to use latest IOS. #1367
Browse files Browse the repository at this point in the history
  • Loading branch information
CCOSTAN committed Nov 18, 2023
1 parent 5e5088e commit db15187
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions config/packages/phynplus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@
## 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:
###################################
## From IFTTT - Notifications
Expand All @@ -37,25 +25,21 @@ automation:
action: IFTTT_Phyn

action:

- wait_template: >-
{{ states.sun.sun.state == 'above_horizon' }}
- service: script.notify_engine
data:
title: 'Phyn Leak Detection'
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }} and turned off the water. Please verify {{ trigger.event.data.where }}.'
who: 'parents'
ios_category: "phyn"
group: 'IFTTT_Phyn'
group: 'Phyn'
level: 'critical'

- alias: Turn Phyn Water On
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
trigger:
platform: event
event_type: ios.notification_action_fired
event_type: mobile_app_notification_action
event_data:
actionName: PHYN_WATER_ON
action: PHYN_WATER_ON
action:
- service: ifttt.trigger
data: {"event":"phyn_water_on"}
Expand All @@ -65,7 +49,8 @@ automation:
title: 'Phyn Leak Detection'
value1: 'Request Recieved. Attempting to Turn the Water back on.'
who: 'parents'
group: 'IFTTT_Phyn'
group: 'Phyn'
level: 'time-sensitive'

- service: script.speech_engine
data:
Expand Down

0 comments on commit db15187

Please sign in to comment.