Closes #78 - Wind related alerts and automations.

This commit is contained in:
CCOSTAN 2017-02-23 06:01:28 +00:00
parent 328dc810f0
commit cc9001304f
2 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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