Updates including wind alerts from Pirate Weather

This commit is contained in:
CCOSTAN
2023-10-02 18:55:06 +00:00
parent d4c5a40f3c
commit 3dbf300e1b
12 changed files with 35 additions and 25 deletions

View File

@@ -8,7 +8,7 @@
trigger:
- platform: numeric_state
entity_id: sensor.pirateweather_wind_speed
above: 24
above: 30
- platform: numeric_state
entity_id: sensor.pirateweather_wind_speed
above: 40
@@ -22,9 +22,9 @@
title: 'VERY HIGH WINDS:'
value1: >-
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
{% if ( windspeed > 31 ) and ( windspeed <= 45 ) %}
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors!
{% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
{% elif ( windspeed > 45 ) and ( windspeed <= 60 ) %}
Warning! Wind speed is {{windspeed}} MPH. FIND SHELTER IMMEDIATELY!
{% elif ( windspeed > 60 ) %}
HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS!
@@ -39,7 +39,7 @@
data:
value1: >
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
{% if ( windspeed > 31 ) and ( windspeed <= 40 ) %}
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors!
{% elif ( windspeed > 40 ) and ( windspeed <= 60 ) %}
Warning! Wind speed is {{windspeed}} MPH. FIND SHELTER IMMEDIATELY!
@@ -55,7 +55,7 @@
data:
tweet: >
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
{% if ( windspeed > 25 ) and ( windspeed <= 40 ) %}
{% if ( windspeed > 31 ) 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)