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
|
|
|
|
######################################################################
|
|
|
|
|
2020-07-23 15:05:19 +00:00
|
|
|
ios:
|
|
|
|
push:
|
|
|
|
categories:
|
|
|
|
- name: Phyn
|
|
|
|
identifier: 'phyn'
|
|
|
|
actions:
|
|
|
|
- identifier: 'PHYN_WATER_ON'
|
|
|
|
title: 'Turn Water Back On'
|
|
|
|
activationMode: 'background'
|
|
|
|
authenticationRequired: no
|
|
|
|
destructive: yes
|
2020-05-25 17:50:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
- wait_template: >-
|
|
|
|
{{ states.sun.sun.state == 'above_horizon' }}
|
|
|
|
|
|
|
|
- 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'
|
|
|
|
ios_category: "phyn"
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'IFTTT_Phyn'
|
2020-07-23 15:05:19 +00:00
|
|
|
|
|
|
|
- alias: Turn Phyn Water On
|
|
|
|
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
|
|
|
|
trigger:
|
|
|
|
platform: event
|
|
|
|
event_type: ios.notification_action_fired
|
|
|
|
event_data:
|
|
|
|
actionName: PHYN_WATER_ON
|
|
|
|
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-17 22:16:41 +00:00
|
|
|
group: 'IFTTT_Phyn'
|
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
|