Couple more tweaks for twitter related to the lightning. #392
This commit is contained in:
parent
b9eb70f7ac
commit
eb0a9d8f75
|
@ -34,13 +34,16 @@ automation:
|
|||
call_window_check: 1
|
||||
call_garage_check: 1
|
||||
|
||||
- delay:
|
||||
minutes: 30
|
||||
|
||||
- service: script.tweet_engine_image
|
||||
data_template:
|
||||
tweet: >
|
||||
{{ [
|
||||
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our home.",
|
||||
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been recorded by the house.",
|
||||
"Yikes! The lightning strike was way too close. Time to get everyone inside."
|
||||
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been recorded {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} miles by the house.",
|
||||
"Yikes! {{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) were way too close; ({{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} miles too close in fact). Time to get everyone inside."
|
||||
] | random +
|
||||
[
|
||||
" #LightningCapital",
|
||||
|
@ -55,6 +58,3 @@ automation:
|
|||
"/config/www/custom_ui/floorplan/images/branding/lightning_2.png",
|
||||
"/config/www/custom_ui/floorplan/images/branding/lightning_3.png"
|
||||
] | random }}
|
||||
|
||||
- delay:
|
||||
minutes: 30
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Loading…
Reference in New Issue