mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Turn fan back on if manually turned off and humidity is still high
This commit is contained in:
parent
eee9104e60
commit
14abb72561
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user