Closes #392 - Lightning Alarm
This commit is contained in:
parent
770ddcb411
commit
8b5991fd0d
|
@ -1 +1 @@
|
||||||
0.113.0
|
0.113.1
|
|
@ -34,17 +34,26 @@ automation:
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
call_garage_check: 1
|
call_garage_check: 1
|
||||||
|
|
||||||
# - service: script.tweet_engine_no_image
|
- service: script.tweet_engine_image
|
||||||
# data_template:
|
data_template:
|
||||||
# tweet: >
|
tweet: >
|
||||||
# {% set windspeed = states.sensor.dark_sky_wind_speed.state | round %}
|
{{ [
|
||||||
# {% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
|
"Lightning has been detected within 2.5 Miles of our home.",
|
||||||
# HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors! #Florida #Weather (https://amzn.to/2jQLpVQ)
|
"{{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) have been recorded by the house.",
|
||||||
# {% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
|
"Yikes! The lightning strike was way too close. Time to get everyone inside."
|
||||||
# Current Wind Speed is : {{windspeed}} mph! Warning! #Florida #Weather (https://amzn.to/2jQLpVQ) FIND SHELTER IMMEDIATELY! #Florida #Weather (https://amzn.to/2jQLpVQ)
|
] | random +
|
||||||
# {% elif ( windspeed > 60 ) %}
|
[
|
||||||
# Current Wind Speed is : {{windspeed}} mph! HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS! #Florida #Weather (https://amzn.to/2jQLpVQ)
|
" #LightningCapital",
|
||||||
# {% endif %}
|
" (https://github.com/CCOSTAN/Home-AssistantConfig/issues/392)",
|
||||||
|
" #Bot ",
|
||||||
|
" "
|
||||||
|
] | random }}
|
||||||
|
image: >-
|
||||||
|
{{ [
|
||||||
|
"/config/www/custom_ui/floorplan/images/branding/lightning_1.png",
|
||||||
|
"/config/www/custom_ui/floorplan/images/branding/lightning_2.png",
|
||||||
|
"/config/www/custom_ui/floorplan/images/branding/lightning_3.png"
|
||||||
|
] | random }}
|
||||||
|
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 30
|
minutes: 30
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
Binary file not shown.
After Width: | Height: | Size: 974 KiB |
Binary file not shown.
After Width: | Height: | Size: 643 KiB |
Binary file not shown.
After Width: | Height: | Size: 678 KiB |
Loading…
Reference in New Issue