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;
|
lambda: return (id(humidity).state - id(median_humidity).state) > 5;
|
||||||
filters:
|
filters:
|
||||||
- delayed_off: 5min
|
- delayed_off: 5min
|
||||||
on_press:
|
|
||||||
then:
|
|
||||||
- homeassistant.service:
|
|
||||||
service: homeassistant.turn_on
|
|
||||||
data:
|
|
||||||
entity_id: fan.basement_bathroom_fan
|
|
||||||
on_release:
|
on_release:
|
||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
@ -191,6 +185,16 @@ sensor:
|
|||||||
icon: mdi:water-percent
|
icon: mdi:water-percent
|
||||||
lambda: return id(humidity).state;
|
lambda: return id(humidity).state;
|
||||||
update_interval: 60s
|
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:
|
filters:
|
||||||
- median:
|
- median:
|
||||||
window_size: 360
|
window_size: 360
|
||||||
|
Loading…
Reference in New Issue
Block a user