Added warning if windows are open when it starts raining

This commit is contained in:
2022-06-06 15:29:43 -04:00
parent c99fce2197
commit 7c4a802cd0
2 changed files with 35 additions and 1 deletions

View File

@ -2,4 +2,13 @@ binary_sensor:
- name: People Present
state: >
{{ is_state('person.tony_stork', 'home')
or is_state('person.christina_stork', 'home') }}
or is_state('person.christina_stork', 'home') }}
- name: Precipitation
state: >-
{% if states.weather.iron_nerd_weather_station.state in ['rainy','thunderstorm','lightning','sleet','snow','snowy','hail'] %}
true
{% else %}
false
{% endif %}
icon: mdi:water