I’m looking to buy a humidity sensor for my bathroom. All of my existing devices connect to HA over WiFi (except my Hue hub of course) but it seems that WiFi devices are often the most expensive and I’m a little overwhelmed with the other kinds (z wave, Zigbee, ble, etc) of IoT devices and their nuances. Any pointers?
These things are so cheap and easy to make you’ll put them everywhere. They are super reliable too. Add your case of choice and a 5V power supply and all up it should cost you less than $30.
Thanks Tom, those do look pretty neat and I especially like that they connect to WiFi. I’ve read through all your links and am having trouble understanding all the hardware pieces and DIY, but I guess that makes it a good weekend project!
You might also want to look at the Sonoff TH10, it is essentially what is described above but with a case and built in power supply all for $7.50. You can use the custom ewelink component or flash it to use the standard MQTT component.
The downside of this approach is in HA I get one reading of humidity every 30 seconds and 3 temperature readings in the same time. So far couldn’t figure out how to get temperature and humidity once every 30 seconds…
I use exponential_moving_average to get rid of sudden peaks in values that might be interpreter as fast rise in humidity and false trigger my automation.
Is there a reason why you have choose sliding_window_moving_average?
The 15 sample moving average (sampled every 15 seconds) gives me an update every 3 min 45 sec which is more than fast enough for slow changing values like this. The moving average does a good job of smoothing the output:
I know that filters for temperature and humidity are separate. Actually, I only added filter to humidity to remove sudden changes in values, but it doesn’t matter in case of temperature so I left it unfiltered, absolutely legit
I tried to use your filters and reverted back to mine. Mostly because for my automation I need humidity readings frequently - it’s too late to switch an extractor fan if someone is taking a shower for 4 minutes, mine does it in about 30 seconds
Did you use the same filter on WiFi as it was in docs example or it really looks smooth in your case? I update WiFi sensor every 30s and it looks ok…