# Best flow practice with many temp/humit sensors

Hi
I have installed Aqara temp/humidity sensors in 4 rooms in my house. I want to trigger a switch to turn on the ventilation when it reaches a certain humidity level.

To do this in one room is easy enough. But the problem is that if I make 4 separate flows they work against each other. So if the switch is triggered in one room and then the humidity changes in another room, below the set trigger value, the switch will be turned off…

What’s the best practice to solve this? Maybe make a separate virtual switch for each room?

Do this via a logic variable. Add all 4 sensor values ​​and then divide by 4. This gives an average value that you can use as a trigger.

Or use the [APP] < group > (2.4.2 - Stable) to create one sensor. In this app you can choose to pick average (most logical for temp), min or max for each value.

Beware that humidity is a value that is temperature related. If the temperature goes up, the (relative) humidity goes down. If you use any calculation on it, I would have it dependent on your goal. In this case I’d probably use max for humidity. This probably also originates from the coldest room. I would then use min for the temp, which would probably give you a device that shows you the coldest room with the hightst humidity.

Make sure you don’t combine rooms that may throw the value off too much. If you combine both inside and outside sensors, the outcome will probably be of little use. If you add in the bathroom something similar applies, as when bathing/showering the humidity goes up a lot, even though the bathroom is probably the hottest room at the time.

Most people compare the bathroom humidity with the humidity of a room nearby to detect showering, and then turn the ventilation high.

Also note you should never turn ventilation off completely, regardless what the humidity is. On a 3 settings ventilation system, level 2 is required if people are present, 1 is only ok if no one is there for a longer period, off is never ok. So basically you pick either 2 or 3 if you are at home.

1 Like