A newbie question - and hopefully someone can help.
I’m considering installing HA to help with the following scenario and wondering if HA is capable of achieving this?
Two Sonoff TH10s - one to measure the humidity in the main part of the house and the second to measure the wetroom - so that the wetroom extractor fan would only activate if the wetroom reading was higher than the rest of the dwelling. Further (and I suspect this is the easy part) ensuring the extractor fan can only switch on during daytime so as not to disturb residents.
If this is possible (it’s a critical thing for damp control) then I’m abandoning the Sonoff ewelink and going the whole hog of Tasmota and HA.
if indoor humidity is greater than or equal to wetroom humidity
and it is currently daytime
and the wetroom fan is currently off
then turn on wetroom fan
- alias 'wetroom fan on'
trigger:
platform: template
value_template: "{{ sensor.indoor_humidity >= sensor.wetroom_humidity }}"
condition:
- condition: state
entity_id: sun.sun
state: 'above_horizon'
- condition: state
entity_id: fan.wetroom
state: 'off'
action:
service: fan.turn_on
entity_id: fan.wetroom
if indoor humidity is less than wetroom humidity
and the wetroom fan is currently on
then turn off wetroom fan
- alias 'wetroom fan off'
trigger:
platform: template
value_template: "{{ sensor.indoor_humidity < sensor.wetroom_humidity }}"
condition:
condition: state
entity_id: fan.wetroom
state: 'on'
action:
service: fan.turn_off
entity_id: fan.wetroom
A useful enhancement to the automation would be to trigger only if the indoor humidity exceeds the wetroom humidity for at least 5 minutes (i.e. it has to exceed the threshold and remain above it for at least 5 minutes before the fan is turned on). This prevents the possibility of ‘short-cycling’ the fan when the humidity hovers around the threshold.