Template data is not passing to tweet script so pulling that for now. #391
This commit is contained in:
parent
664db46a58
commit
b7f87c1085
|
@ -29,13 +29,14 @@ automation:
|
||||||
title: 'Phyn Leak Detection'
|
title: 'Phyn Leak Detection'
|
||||||
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }}. Please verify {{ trigger.event.data.where }}.'
|
value1: 'Phyn is sensing {{ trigger.event.data.alert_type }}. Please verify {{ trigger.event.data.where }}.'
|
||||||
who: 'family'
|
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
|
- service: script.tweet_engine_image
|
||||||
data_template:
|
data_template:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
".@Phyn has detected {{ trigger.event.data.alert_type }} and notified us using Home Assistant. ",
|
".@Phyn has detected a leak and notified us using Home Assistant. ",
|
||||||
"I am shutting down the water since @Phyn detected a leak by {{ trigger.event.data.where }}.",
|
"I am shutting down the water since @Phyn detected a leak.",
|
||||||
"Time to let @ccostan know that @Phyn has 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)" }}
|
] | random + " #SavingWater (https://www.vcloudinfo.com/2020/05/phyn-plus-smart-water-shutoff-device.html)" }}
|
||||||
image: >-
|
image: >-
|
||||||
|
|
Loading…
Reference in New Issue