From 582765f82bcd5d634c8f34f29c099dadbc431a70 Mon Sep 17 00:00:00 2001 From: ccostan Date: Thu, 20 Jul 2023 00:38:28 -0400 Subject: [PATCH] More Clean up and also added in the PHYN custom integration for Water Control and monitoring. --- config/packages/phynplus.yaml | 21 +-------------------- config/script/notify_engine.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/config/packages/phynplus.yaml b/config/packages/phynplus.yaml index 6b1f8eea..5e5c3e63 100755 --- a/config/packages/phynplus.yaml +++ b/config/packages/phynplus.yaml @@ -3,6 +3,7 @@ # 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 +# Added in Custom HACK integration via https://github.com/MizterB/homeassistant-phyn #------------------------------------------- ###################################################################### ## Phyn Plus Water ShutOff - https://amzn.to/2Zy3sbJ @@ -36,26 +37,6 @@ automation: action: IFTTT_Phyn action: - - service: script.speech_engine - data: - value1: > - {{ [ - "Attention please. The Phyn unit has detected a possible leak. Please verify there are no leaks in the house. " - ] | random }} - call_no_announcement: 1 - - - service: script.tweet_engine_image - data: - tweet: > - {{ [ - "The @Phyn has detected a {{ trigger.event.data.alert_type }} and notified us using Home Assistant. ", - "I am shutting down the water since @Phyn detected {{ trigger.event.data.alert_type }} .", - "Time to let @ccostan know that @Phyn has detected {{ trigger.event.data.alert_type }} ." - ] | random + " #SavingWater (https://www.vcloudinfo.com/2020/05/phyn-plus-smart-water-shutoff-device.html)" }} - image: >- - {{ [ - "/config/www/custom_ui/floorplan/images/branding/pipeleak.png" - ] | random }} - wait_template: >- {{ states.sun.sun.state == 'above_horizon' }} diff --git a/config/script/notify_engine.yaml b/config/script/notify_engine.yaml index 01ac9d49..8ff77835 100755 --- a/config/script/notify_engine.yaml +++ b/config/script/notify_engine.yaml @@ -46,10 +46,6 @@ notify_engine: title: "{{ title }}" message: "{{ value1 }} {{ value2 }} {{ value3 }}" data: - # attachment: - # url: "{{ url }}" - # content-type: "{{ content_type }}" - # hide-thumbnail: false apns_headers: 'apns-collapse-id': "{{ apns_id }}" push: @@ -59,3 +55,7 @@ notify_engine: # interruption-level: critical category: "{{ ios_category }}" entity_id: "{{ camera_entity }}" + # attachment: + # url: "{{ url }}" + # content-type: "{{ content_type }}" + # hide-thumbnail: false