mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 03:21:47 +00:00
- Updated comments in various YAML configuration files to provide clearer descriptions of functionalities and integrations. - Improved documentation for alarm, alexa_media_player, backups, blink, cbyge, climate, finance, fridge, garadget, glances, hass_agent_homepc, holiday, ios, landscape_lighting, lightning, logger, medicine, nfc_tags, noonhome, office_motion, phynplus, powerwall, printer, processmonitor, proxmox, rachio, rheem_econet, roku, sleepiq, space, speedtest, stats, superbowl, vacuum, wireless, and youtube packages. - Added relevant links and issue references where applicable to enhance user guidance and support.
115 lines
3.8 KiB
YAML
Executable File
115 lines
3.8 KiB
YAML
Executable File
#-------------------------------------------
|
|
# @CCOSTAN
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# Phyn Plus Water Shutoff - Leak detection and auto shutoff.
|
|
#-------------------------------------------
|
|
######################################################################
|
|
## Phyn Plus monitoring via custom integration.
|
|
######################################################################
|
|
# Info: https://www.vcloudinfo.com/2020/05/phyn-plus-smart-water-shutoff-device.html
|
|
# HACS: https://github.com/MizterB/homeassistant-phyn
|
|
## Phyn Plus Water ShutOff - https://amzn.to/2Zy3sbJ
|
|
######################################################################
|
|
|
|
automation:
|
|
- alias: 'Phyn ShutOff Notification'
|
|
id: 78bbd270-ee1e-4b3d-80fd-44ce7c66dab5
|
|
mode: single
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: valve.phyn_shutoff_valve
|
|
to: 'closed'
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.phyn_leak_test_running
|
|
state: 'off'
|
|
|
|
action:
|
|
- 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'
|
|
|
|
- service: persistent_notification.create
|
|
data:
|
|
title: '🚨 Phyn Leak Detection Alert'
|
|
message: |
|
|
**CRITICAL**: Phyn has detected a potential leak and automatically shut off the main water supply.
|
|
|
|
**Action Required**: Please verify there are no leaks in the house before turning the water back on.
|
|
|
|
**Time**: {{ now().strftime('%Y-%m-%d %H:%M:%S') }}
|
|
notification_id: 'phyn_leak_detection'
|
|
|
|
- alias: Turn Phyn Water On
|
|
id: 1f295bb8-8925-4b22-PHYN-9fe079b295a8
|
|
trigger:
|
|
platform: event
|
|
event_type: mobile_app_notification_action
|
|
event_data:
|
|
action: PHYN_WATER_ON
|
|
action:
|
|
- service: homeassistant.turn_on
|
|
entity_id: valve.phyn_shutoff_valve
|
|
|
|
- service: persistent_notification.dismiss
|
|
data:
|
|
notification_id: 'phyn_leak_detection'
|
|
|
|
- service: script.notify_engine
|
|
data:
|
|
title: 'Phyn Leak Detection'
|
|
value1: 'Request Received. Attempting to Turn the Water back on.'
|
|
who: 'parents'
|
|
group: 'Phyn'
|
|
level: 'time-sensitive'
|
|
|
|
- service: script.speech_engine
|
|
data:
|
|
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'
|
|
|
|
- alias: Dismiss Phyn Notification When Valve Opens
|
|
id: 3f295bb8-8925-4b22-PHYN-9fe079b295a8
|
|
trigger:
|
|
- platform: state
|
|
entity_id: valve.phyn_shutoff_valve
|
|
to: 'open'
|
|
action:
|
|
- service: persistent_notification.dismiss
|
|
data:
|
|
notification_id: 'phyn_leak_detection'
|
|
|
|
|