Closes #74 - Check for high winds and do a voice ALERT if so.

This commit is contained in:
CCOSTAN
2017-02-23 04:11:44 +00:00
parent b27c62d633
commit a7e99a62fe

View File

@@ -7,7 +7,7 @@
trigger:
- platform: numeric_state
entity_id: sensor.dark_sky_wind_speed
above: 25
above: 20
condition:
- condition: or
@@ -29,4 +29,12 @@
- service: script.Voice_notify
data_template:
value1: "Please check the garage doors. The Small garage is {{ states('cover.small_garage')}} and the large garage is {{ states('cover.large_garage')}}"
value1: >
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
{% if is_state('cover.large_garage', 'open') -%}
The Large Garage Door is open
{% endif -%}
{% if is_state('cover.small_garage', 'open') -%}
{% if is_state('cover.large_garage', 'open') -%}and
{%- endif %} The small Garage Door is open.
{% endif %}"