diff --git a/automation/Speech/garadget_Wind_Speed_Check.yaml b/automation/Speech/garadget_Wind_Speed_Check.yaml index 512266db..7c4e68b4 100755 --- a/automation/Speech/garadget_Wind_Speed_Check.yaml +++ b/automation/Speech/garadget_Wind_Speed_Check.yaml @@ -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 %}"