Template data is not passing to tweet script so pulling that for now. #391

This commit is contained in:
ccostan 2020-05-25 17:22:38 -04:00
parent 664db46a58
commit b7f87c1085
1 changed files with 3 additions and 2 deletions

View File

@ -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: >-