Hello.
First post, so if I am doing something wrong according to the rules, just let me know.
I am trying to automate the lights on our bathroom. Right now it is just a motion sensor. And thats fine. Untill you shower. Then it cant see you, and after 10 min it turns of the light. (Got teenagers in the house, so +10 min bath is a thing ).
I have bought a temp+hum sensor. The idea is, that the motion sensor should not work (pause) if the humidity in the room is above, lets say 65%.
You donot have a condition set yet.
The order seems fine. the trigger is ALWAYS the motion detector and with the additonal condition you will add you can add state of humidity sensor to be below 65
However, if one kid showered and humidity is above 65% and the second person wants to showerā¦ the light will not turn onā¦think about that use-case too
This template lets sensors work together as one, I also use a temp/humidity sensor, but on an average that switches a boolean. That boolean is called āinput_boolean.net_gedouchedā
Lights are switched off based on this automation;
# Lichten uit als timer is afgelopen
- alias: timer_badkamer_done
mode: single
max_exceeded: silent
trigger:
- entity_id: binary_sensor.master_bath_sensors
for: '00:15:00'
platform: state
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.master_bath_sensors
state: 'off'
action:
- service: light.turn_off
data:
entity_id:
- light.hele_badkamer
- light.shellyrgbw2_1e03d3_channel_1
Maybe a but elaborate for what you want, the reason behind this, is that I also turn on the ventilation based on these input booleans. Sky is the limit
Yeah. That case is my main problem. To set a condition is not that hard. But I cant get my head around how to solve the waiting time untill the humidity is low again.
Question: why would you not want the lights to switch when the humidity is high?
And, imo you donot have to calculate waiting time because the sensor will indicate when % is low(er) again
God question. I dont want them to switch. I want them to stay on.
I have been looking at it again, and the idea is, that if the light is on, because of motion, then it shall not turn of after 10 min (like normal) if the humidity is high.
So the assumption is that humidity means āin useā and thus not switch offā¦makes more sense to me
Ideal would be to have the motion/presence sensor in the bathroom as then the only parameter is āmotionā (assuming people move in the bathroom), humidity or not would not be inmportantā¦just the presence of someoneā¦less sensors to check too
He could add a second PIR sensor inside the shower, or use a secondary parameter like humidity. Heās already purchased the humidity sensor, as had I for fan control.
The mmwave sensors might solve the problem. I suspect the would see through a shower curtain. Curious to see if they see through glass.
Iāve found my automation to be very reliable with no wife/kid/guest complaints.
A condition based on humidity seems fragile. My daughters spend ages doing makeup at the mirror. I included a door sensor - when the door is closed, cancel the timer to turn the light off. Then when the door is opened, start the timer again (similarly if motion goes to off and the door is open, in case they never closed the door initially). This works for me because we always leave the bathroom door ajar when not in use.
How about this one.
2 trickers.
If the humidity is above 70 = turn lights on
If the sensor see motion = turn lights on
If the humidity is under 70 = turn lights off after 2 min.
If sensor has no motion in 2 min = turn lights of.
Will that work?
If i dont move, but the humidity is above 70 (Standing in shower) the light will turn on
If the humidity drops below 70 but i am moving (Open window and me getting out of shower) lights will turn on.