#1367 - removed all IFTTT references. Updated notifications to have actionable items and snooze. also using the shutoff value switch to trigger and execute. And some other misc updates.

This commit is contained in:
CCOSTAN
2024-12-07 22:03:25 +00:00
parent 0c0ecf7ea7
commit b1c75c76fb
10 changed files with 149 additions and 4060 deletions

View File

@@ -10,27 +10,26 @@
######################################################################
automation:
###################################
## From IFTTT - Notifications
###################################
- alias: 'Phyn ShutOff Notification'
id: 78bbd270-ee1e-4b3d-80fd-44ce7c66dab5
mode: single
trigger:
- platform: event
#Sent from IFTTT Webhooks : {"action":"IFTTT_Phyn", "alert_type":" {{AlertType}}", "where":"{{SuggestedFixtures}}"}
event_type: ifttt_webhook_received
event_data:
action: IFTTT_Phyn
- platform: state
entity_id: switch.phyn_shutoff_valve
to: 'off'
action:
- service: script.notify_engine
- service: script.notify_engine_two_button
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 }}.'
value1: 'Phyn is sensing a leak and turned off the water. Please verify.'
who: 'parents'
group: 'Phyn'
action1: 'PHYN_WATER_ON'
action2: 'SNOOZE_PHYN_NOTIFICATION'
icon1: 'sfsymbols:arrow.up.circle'
icon2: 'sfsymbols:clock'
level: 'critical'
- alias: Turn Phyn Water On
@@ -41,13 +40,13 @@ automation:
event_data:
action: PHYN_WATER_ON
action:
- service: ifttt.trigger
data: {"event":"phyn_water_on"}
- service: homeassistant.turn_on
entity_id: switch.phyn_shutoff_valve
- service: script.notify_engine
data:
title: 'Phyn Leak Detection'
value1: 'Request Recieved. Attempting to Turn the Water back on.'
value1: 'Request Received. Attempting to Turn the Water back on.'
who: 'parents'
group: 'Phyn'
level: 'time-sensitive'
@@ -57,3 +56,24 @@ automation:
value1: >
I have been asked to Turn the House Water back on. Please verify there are no leaks in the house.
call_no_announcement: 1
- alias: Snooze Phyn Notification
id: 2f295bb8-8925-4b22-PHYN-9fe079b295a8
trigger:
platform: event
event_type: mobile_app_notification_action
event_data:
action: SNOOZE_PHYN_NOTIFICATION
action:
- delay: '00:30:00'
- service: script.notify_engine_two_button
data:
title: 'Phyn Leak Detection'
value1: 'Phyn is sensing a leak and turned off the water. Please verify.'
who: 'parents'
group: 'Phyn'
action1: 'PHYN_WATER_ON'
action2: 'SNOOZE_PHYN_NOTIFICATION'
icon1: 'sfsymbols:arrow.up.circle'
icon2: 'sfsymbols:clock'
level: 'critical'