From cc9001304f4800759fe91e5c86fde78ff2939c3d Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 23 Feb 2017 06:01:28 +0000 Subject: [PATCH] Closes #78 - Wind related alerts and automations. --- automation/Speech/High_Wind_Speed_Check.yaml | 37 ++++++++++++++++++++ automation/System/rachio_rain_delay.yaml | 3 ++ 2 files changed, 40 insertions(+) create mode 100755 automation/Speech/High_Wind_Speed_Check.yaml diff --git a/automation/Speech/High_Wind_Speed_Check.yaml b/automation/Speech/High_Wind_Speed_Check.yaml new file mode 100755 index 00000000..f98203df --- /dev/null +++ b/automation/Speech/High_Wind_Speed_Check.yaml @@ -0,0 +1,37 @@ +################################### +## Tornados are no Joke. +################################### + +- alias: 'High Wind Speed Notification' + hide_entity: True + trigger: + - platform: numeric_state + entity_id: sensor.dark_sky_wind_speed + above: 50 + + action: + - service: script.ifttt_notify + data_template: + value1: 'VERY HIGH WINDS:' + value2: "{{ states('sensor.dark_sky_wind_speed')}}" + value3: ' ' + + - service: light.turn_on + entity_id: + - group.all_lights + data: + flash: short + + - service: input_boolean.turn_on + entity_id: input_boolean.alert_mode + + - service: script.Voice_notify + data_template: + value1: > + "ATTENTION: The wind speed is now {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. Please make sure everyone is inside for safety." + + - service: light.turn_on + entity_id: + - group.all_lights + data: + flash: long diff --git a/automation/System/rachio_rain_delay.yaml b/automation/System/rachio_rain_delay.yaml index 43a6dad9..6711ca2e 100755 --- a/automation/System/rachio_rain_delay.yaml +++ b/automation/System/rachio_rain_delay.yaml @@ -8,6 +8,9 @@ - platform: numeric_state entity_id: sensor.dark_sky_precip_intensity_max above: 0.5 + - platform: numeric_state + entity_id: sensor.dark_sky_wind_speed + above: 20 action: - service: ifttt.trigger