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)

View File

@@ -13,6 +13,8 @@
entity_id:
- person.carlo
- person.stacey
- person.paige
- person.justin
from: 'not_home'
to: 'home'

View File

@@ -1,5 +1,5 @@
######################################################################
## Stuff that needs to happen at 05:50am.
## Stuff that needs to happen at 08:00am.
######################################################################
- alias: 'Timed 0630'
@@ -7,7 +7,7 @@
mode: single
trigger:
- platform: time
at: '05:50:00'
at: '08:00:00'
condition:
- condition: state

View File

@@ -7,7 +7,7 @@
mode: single
trigger:
- platform: time
at: '07:00:00'
at: '08:30:00'
condition:
- condition: state