diff --git a/config/.HA_VERSION b/config/.HA_VERSION index fcf6ac9a..aafee788 100755 --- a/config/.HA_VERSION +++ b/config/.HA_VERSION @@ -1 +1 @@ -0.113.0 \ No newline at end of file +0.113.1 \ No newline at end of file diff --git a/config/packages/lightning.yaml b/config/packages/lightning.yaml index 51f95d59..82e151c6 100755 --- a/config/packages/lightning.yaml +++ b/config/packages/lightning.yaml @@ -34,17 +34,26 @@ automation: call_window_check: 1 call_garage_check: 1 - # - service: script.tweet_engine_no_image - # data_template: - # tweet: > - # {% set windspeed = states.sensor.dark_sky_wind_speed.state | round %} - # {% if ( windspeed > 25 ) and ( windspeed <= 40 ) %} - # HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors! #Florida #Weather (https://amzn.to/2jQLpVQ) - # {% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %} - # Current Wind Speed is : {{windspeed}} mph! Warning! #Florida #Weather (https://amzn.to/2jQLpVQ) FIND SHELTER IMMEDIATELY! #Florida #Weather (https://amzn.to/2jQLpVQ) - # {% elif ( windspeed > 60 ) %} - # Current Wind Speed is : {{windspeed}} mph! HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS! #Florida #Weather (https://amzn.to/2jQLpVQ) - # {% endif %} + - service: script.tweet_engine_image + data_template: + tweet: > + {{ [ + "Lightning has been detected within 2.5 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." + ] | random + + [ + " #LightningCapital", + " (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: minutes: 30 diff --git a/config/www/custom_ui/floorplan/images/branding/HostiFI_Ad_260x130.png b/config/www/custom_ui/floorplan/images/branding/HostiFI_Ad_260x130.png deleted file mode 100755 index eb4826c9..00000000 Binary files a/config/www/custom_ui/floorplan/images/branding/HostiFI_Ad_260x130.png and /dev/null differ diff --git a/config/www/custom_ui/floorplan/images/branding/Venbu_static.png b/config/www/custom_ui/floorplan/images/branding/Venbu_static.png deleted file mode 100755 index 55b9bf37..00000000 Binary files a/config/www/custom_ui/floorplan/images/branding/Venbu_static.png and /dev/null differ diff --git a/config/www/custom_ui/floorplan/images/branding/lightning_1.png b/config/www/custom_ui/floorplan/images/branding/lightning_1.png new file mode 100755 index 00000000..439fee53 Binary files /dev/null and b/config/www/custom_ui/floorplan/images/branding/lightning_1.png differ diff --git a/config/www/custom_ui/floorplan/images/branding/lightning_2.png b/config/www/custom_ui/floorplan/images/branding/lightning_2.png new file mode 100755 index 00000000..803c0f93 Binary files /dev/null and b/config/www/custom_ui/floorplan/images/branding/lightning_2.png differ diff --git a/config/www/custom_ui/floorplan/images/branding/lightning_3.png b/config/www/custom_ui/floorplan/images/branding/lightning_3.png new file mode 100755 index 00000000..20b3bbda Binary files /dev/null and b/config/www/custom_ui/floorplan/images/branding/lightning_3.png differ