2018-01-02 00:00:45 +00:00
|
|
|
###################################
|
|
|
|
## Tornados are no Joke.
|
|
|
|
###################################
|
|
|
|
|
|
|
|
- alias: 'High Wind Speed Notification'
|
2020-07-19 19:23:27 +00:00
|
|
|
id: 5cc158a5-038a-4078-a9fb-c9f9cf9ecd49
|
|
|
|
mode: single
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2023-04-09 18:06:11 +00:00
|
|
|
entity_id: sensor.pirateweather_wind_speed
|
2023-10-02 18:55:06 +00:00
|
|
|
above: 30
|
2018-01-06 18:31:59 +00:00
|
|
|
- platform: numeric_state
|
2023-04-09 18:06:11 +00:00
|
|
|
entity_id: sensor.pirateweather_wind_speed
|
2018-01-06 18:31:59 +00:00
|
|
|
above: 40
|
|
|
|
- platform: numeric_state
|
2023-04-09 18:06:11 +00:00
|
|
|
entity_id: sensor.pirateweather_wind_speed
|
2018-01-06 18:31:59 +00:00
|
|
|
above: 60
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-07-19 19:23:27 +00:00
|
|
|
title: 'VERY HIGH WINDS:'
|
|
|
|
value1: >-
|
2023-04-09 18:06:11 +00:00
|
|
|
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
|
2023-10-02 18:55:06 +00:00
|
|
|
{% if ( windspeed > 31 ) and ( windspeed <= 45 ) %}
|
2020-07-19 19:23:27 +00:00
|
|
|
HEAVY WINDS!!! Current Wind Speed is : {{windspeed}} mph! Be VERY careful outdoors!
|
2023-10-02 18:55:06 +00:00
|
|
|
{% elif ( windspeed > 45 ) and ( windspeed <= 60 ) %}
|
2020-07-19 19:23:27 +00:00
|
|
|
Warning! Wind speed is {{windspeed}} MPH. FIND SHELTER IMMEDIATELY!
|
|
|
|
{% elif ( windspeed > 60 ) %}
|
|
|
|
HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS!
|
|
|
|
{% endif %}
|
|
|
|
who: 'family'
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'Alert'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
- service: input_boolean.turn_on
|
|
|
|
entity_id: input_boolean.alert_mode
|
|
|
|
|
|
|
|
- service: script.speech_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-01-02 00:00:45 +00:00
|
|
|
value1: >
|
2023-04-09 18:06:11 +00:00
|
|
|
{% set windspeed = states.sensor.pirateweather_wind_speed.state | round %}
|
2023-10-02 18:55:06 +00:00
|
|
|
{% if ( windspeed > 31 ) and ( windspeed <= 40 ) %}
|
2018-01-06 18:31:59 +00:00
|
|
|
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!
|
|
|
|
{% elif ( windspeed > 60 ) %}
|
|
|
|
HURRICANE WINDS. FIND SHELTER, AND STAY INDOORS!
|
|
|
|
{% endif %}
|
2018-01-02 00:00:45 +00:00
|
|
|
call_window_check: 1
|
|
|
|
call_garage_check: 1
|
|
|
|
|
|
|
|
- service: script.emergency
|
|
|
|
|
2020-07-19 19:23:27 +00:00
|
|
|
- delay:
|
|
|
|
hours: 2
|