From b7f87c1085f81fe94778efba9d53bd770f1e54dd Mon Sep 17 00:00:00 2001 From: ccostan Date: Mon, 25 May 2020 17:22:38 -0400 Subject: [PATCH] Template data is not passing to tweet script so pulling that for now. #391 --- config/packages/phynplus.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/packages/phynplus.yaml b/config/packages/phynplus.yaml index 6713a6a2..e5501775 100755 --- a/config/packages/phynplus.yaml +++ b/config/packages/phynplus.yaml @@ -29,13 +29,14 @@ automation: title: 'Phyn Leak Detection' value1: 'Phyn is sensing {{ trigger.event.data.alert_type }}. Please verify {{ trigger.event.data.where }}.' who: 'family' + url: 'https://github.com/CCOSTAN/Home-AssistantConfig/raw/master/config/www/custom_ui/floorplan/images/branding/pipeleak.png' - service: script.tweet_engine_image data_template: tweet: > {{ [ - ".@Phyn has detected {{ trigger.event.data.alert_type }} and notified us using Home Assistant. ", - "I am shutting down the water since @Phyn detected a leak by {{ trigger.event.data.where }}.", + ".@Phyn has detected a leak and notified us using Home Assistant. ", + "I am shutting down the water since @Phyn detected a leak.", "Time to let @ccostan know that @Phyn has detected a leak." ] | random + " #SavingWater (https://www.vcloudinfo.com/2020/05/phyn-plus-smart-water-shutoff-device.html)" }} image: >-