Turn fan back on if manually turned off and humidity is still high

This commit is contained in:
ChNussbaum 2020-02-15 13:34:41 -06:00
parent eee9104e60
commit 14abb72561

View File

@ -122,12 +122,6 @@ binary_sensor:
lambda: return (id(humidity).state - id(median_humidity).state) > 5;
filters:
- delayed_off: 5min
on_press:
then:
- homeassistant.service:
service: homeassistant.turn_on
data:
entity_id: fan.basement_bathroom_fan
on_release:
then:
- if:
@ -191,6 +185,16 @@ sensor:
icon: mdi:water-percent
lambda: return id(humidity).state;
update_interval: 60s
on_raw_value:
then:
- if:
condition:
binary_sensor.is_on: trigger_humidity
then:
- homeassistant.service:
service: homeassistant.turn_on
data:
entity_id: fan.basement_bathroom_fan
filters:
- median:
window_size: 360