mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-18 23:36:11 +00:00
Closes #78 - Wind related alerts and automations.
This commit is contained in:
parent
328dc810f0
commit
cc9001304f
37
automation/Speech/High_Wind_Speed_Check.yaml
Executable file
37
automation/Speech/High_Wind_Speed_Check.yaml
Executable 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
|
@ -8,6 +8,9 @@
|
|||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.dark_sky_precip_intensity_max
|
entity_id: sensor.dark_sky_precip_intensity_max
|
||||||
above: 0.5
|
above: 0.5
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_wind_speed
|
||||||
|
above: 20
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: ifttt.trigger
|
- service: ifttt.trigger
|
||||||
|
Loading…
x
Reference in New Issue
Block a user