Want to run if/then actions based upon MQTT humidity level sensor

I couldn't resist... :innocent:

Inspiration from this video's 20 second intro - 5 Smart Home Ideas You Haven't Yet Thought Of - YouTube


Haha. Smart home ideas? If you want to look like you’re pooping into the ark of the covenant!

1 Like

BTW, I would have the fan turn on manually (as would normally be done anyhow), and turn off when either humidity has dropped to a set level, or after a set time, whichever happens last. This way it should work for either smell or after shower purposes.

@gunner this is exactly my intention;

Fan is turned on manually.
Fan runs for 10min
After 10min, begins querying humidity
If humidity is < 50% fan turns off immediately
Else, recheck every couple min until set point is reached.

This way, only one touch is necessary, and the fan runs correctly depending upon the occasion, with no unnecessary run time.

I’ll probably add some over-run timing after it’s fine tuned, and I’m not sure that 50% is the final number, but the goal is clear.

I currently have the fan on a 45min timer, but this sounds far more useful to me

Have you thought about what happens when the outside humidity is above 50%?

Outside humidity is frequently well over 50% here. Well before I decided to automate my bathroom ventilation, I automated my climate control, including heat/ac/humidity.


Your flow held the key to my solution, thank you!

I was unaware of flow. values until now


I haven implemented yet but I tested cheap sonar which gives 0/1 if water is there or not. So put that outside of your toilet water tank and when you flush, water level lowers and sonar gives 0. This then triggers fan. You can also detect is it poo or pee because flsuhing first one use more water (at least here in Finland) so water level goes lower then.

This is a neat idea. Those flushers aren’t required where I am, but I have access to them.