2020-05-25 17:50:17 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
# Phyn Smart Water ShutOff Support
|
|
|
|
# https://www.vcloudinfo.com/2020/05/phyn-plus-smart-water-shutoff-device.html
|
2023-07-20 04:38:28 +00:00
|
|
|
# Added in Custom HACK integration via https://github.com/MizterB/homeassistant-phyn
|
2020-05-25 17:50:17 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
######################################################################
|
|
|
|
## Phyn Plus Water ShutOff - https://amzn.to/2Zy3sbJ
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
automation:
|
|
|
|
###################################
|
|
|
|
## From IFTTT - Notifications
|
|
|
|
###################################
|
|
|
|
- alias: 'Phyn ShutOff Notification'
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 78bbd270-ee1e-4b3d-80fd-44ce7c66dab5
|
2020-07-23 15:05:19 +00:00
|
|
|
mode: single
|
2020-05-25 17:50:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
action:
|
2020-07-23 15:05:19 +00:00
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-07-23 15:05:19 +00:00
|
|
|
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'
|
2023-11-18 22:46:51 +00:00
|
|
|
group: 'Phyn'
|
|
|
|
level: 'critical'
|
2020-07-23 15:05:19 +00:00
|
|
|
|
|
|
|
- alias: Turn Phyn Water On
|
|
|
|
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
|
|
|
|
trigger:
|
|
|
|
platform: event
|
2023-11-18 22:46:51 +00:00
|
|
|
event_type: mobile_app_notification_action
|
2020-07-23 15:05:19 +00:00
|
|
|
event_data:
|
2023-11-18 22:46:51 +00:00
|
|
|
action: PHYN_WATER_ON
|
2020-07-23 15:05:19 +00:00
|
|
|
action:
|
|
|
|
- service: ifttt.trigger
|
2020-09-26 14:52:45 +00:00
|
|
|
data: {"event":"phyn_water_on"}
|
2020-07-23 15:05:19 +00:00
|
|
|
|
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-07-23 15:05:19 +00:00
|
|
|
title: 'Phyn Leak Detection'
|
|
|
|
value1: 'Request Recieved. Attempting to Turn the Water back on.'
|
|
|
|
who: 'parents'
|
2023-11-18 22:46:51 +00:00
|
|
|
group: 'Phyn'
|
|
|
|
level: 'time-sensitive'
|
2020-07-23 15:05:19 +00:00
|
|
|
|
|
|
|
- service: script.speech_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-07-23 15:05:19 +00:00
|
|
|
value1: >
|
|
|
|
{{ [
|
|
|
|
"I have been asked to Turn the House Water back on. Please verify there are no leaks in the house. "
|
|
|
|
] | random }}
|
|
|
|
call_no_announcement: 1
|