Apologies if something like this has been done and this is in the wrong place.
I’ve been meddling with hassio and smart home stuff for the last year just recently bought my own place and so expanding my goals/ambitions for what I can create. I’m always massively impressed and surprised at the various ideas solutions the community comes up with.
So thought I’d start this thread for inspiration from the community.
In my bathroom I have,
1 xiaomi motion sensor
1 xiaomi temp/humidity sensor
2 sonoff basic one for lights one for the fan
And creating a few basic automations to tie them all together with node red.
Motion sensor activates lights, humidity activates ventilation fan, illuminance sensor dictates if lights need to be on. All 3 together for if someone has a shower, as the motion sensor doesn’t see through the glass shower doors.
So what other things are people doing ? I’ve seen toilet seat sensors, auto flushers, air freshener tie ins etc. The wacky and the simple (light bulb, why didn’t I think of that moment) type things ??
However the humidity thing needs some thinking. Base or background humidity will vary with the seasons and the weather. Setting an “absolute” value to turn the fan on and off is not much use. Instead I suggest using the trend sensor, or the generic hygrostat custom component: https://github.com/basschipper/homeassistant-generic-hygrostat
The humidity control is only for when having a shower, has worked nicely so far. Turns on shortly after jumping in the shower and stays on for 30 mins or so after , meets the WAF as it helps keep the shower stall shiny and streak free.
Node red is A flow diagram way of creating automations, no real coding. I’ve only just started using it but enjoying it and finding it easier to work with once I get my head onto the right place.
Can you elaborate on which flow sensor and where you placed it?
Most are huge and ugly (and expensive) and not something that fit in the shower - and access to pipes usually not easy…
I do something similar. I store the current humidity every 5 minutes. If the trend sensor fires, the fan kicks on and turns off after the previous 5 minutes humidity level is restored or the fan has been on for 30+ minutes. Once the fan is on, I suspend storing new humidity levels until it is turned off again.
We have a glass enclosed shower with a transom. The humidity level never triggers the trend sensor until the door or transom is opened, which releases a blast of humidity into the air. Once the fan restores the last known “good” humidity level (stored every 5 minutes), the process repeats itself waiting for a jump in the trend sensor while storing new humidity “reset points”.
It’s been working well for months, and I almost never touch the fan switch now. No need for node red.
Cold water doesn’t really effect humidity levels. And I’ve built an extremely accurate sensor with ESPHOME and a cheap BME280 sensor. ESPHOME is fantastic and something every smart home enthusiast should consider adding to their network.
I’m in the UK and I have a shower pull cord with a timer fan and hue lights, currently cord is giving power to switched live and I have to control the fan manually via external wall switch. I’m experimenting with this in my shower room: I would like to replace the external control switch for this fan to something smart.
For humidity, the xiaomi sensor works fine for me, I use the attribute change of the statistics platform.
Usually when the change goes higher than 5 it means someone is showering.
Then why didn’t you put the flow sensor on the hot pipe instead? It really makes no sense whatsoever to monitor the cold pipe. What does make sense though, is to measure the actual humidity and not guess at it.
And if you’re rinsing the shower you’re going to get a false positive for humidity. By measuring the actual humidity you will be able to remove it until it reaches the desired level.
I use a ds18b20 connected to a wemos d1 mini running easyESP. The temp sensor is taped to the hot water line which feeds the shower. There is a Z-Wave switch for the bathroom fan. The bathroom fan has a humidity sensor built in which works fine in the summer but runs too much in the winter. If you turn the fan on it will be in auto humidity mode. If you turn it on, off, and on again the fan will be turned on in manual running mode. The automation based on the water pipe temperature turns on the fan when the temperature is above 92 F and a six minute delay. The delay of the temperature crossing 92 F and the six minutes added delay avoids the drafts from the fan which my wife does not like.
Fan time slider automation which does the turn off:
There is a dash button in the bathroom in case the fan is needed for non shower reasons. This turns off the fan to get it in a known state to then do the on-off-on to get it in full manual on mode.
Like most of you I have a humidity sensor, which manages the vent. I do use Node RED. I love it! I also have my bathroom lighting controlled by HA.
Then I have an RF window sensor. Signal is received by a Sonoff RF hub running Tasmota. At the radiator I have a controlled radiator thermostat. When the window opens, the radiator switches off.
New plans:
I already happen to have a heated mirror in my bathroom. Currently, when switched on manually, the mirror gets very hot and will not become steamy. However, it actually gets too hot and consumes a lot of electricity.
My aim is to have the mirror heater controlled by HA + NodeRED. From the temperature and humidity we can calculate the dew point and heat up the mirror just to reach that temperature. Minimize power usage, optimize comfort.