💡 Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

Hi @NeoFax75 and @Geo

Thank you for your kind words.

So you will need something to know you in bed early. That something has to have a ON & OFF state. If you put that something in your By-pass then it will disable the automation from running and your light will not turn ON and OFF. If you then switch to night lights in the automation and you need that something to only be on for a short time (preset time) so the night lights will work when you get up in the middle of the night later then maybe consider my Entity - Run ON Timer for your something. This way it will turn the by-pass on for a preset time period.

If you have a mmWave sensor, they are very good at staying in the detected state or the ON state for a long time.

I have worked with other people with these types of sensors and this automation works perfectly.

The below explanation also applies if you have sensors that are in a ON state for long periods like contact sensor, etc.

If you going to use a ESPresense, so you get a fast reaction time, with a mmWave sensor then you must create a group helper for the trigger sensor.

The reason being is when you walk into the room the ESPresense detected motion and the lights turn ON (because it a quick reacting sensor), then before it clears the mmWave sensor changes state to detected (ON state) and the automation doesn’t see it, so the mmWave stays ON for a long time and the automation never gets a trigger from the mmWave sensor again making it useless. The light goes OFF and you have to wave your hands around for the ESPresense to detect motion again and turn your lights ON, remember the mmWave sensor is still ON but will not send a trigger again until is clears goes to OFF state and then goes to detected or ON state (The trigger is from OFF to ON state).

When you create a group helper if any sensor that is in the helper goes from OFF to ON then the trigger is received, Lights ON. It then waits until all sensors are OFF before it goes to a OFF state. So with a group helper as the trigger sensor, if you walk into the room the ESPresense detected motion and the lights turn ON (because it a quick reacting sensor), then before it clears the mmWave sensor changes state to detected (ON state). The group helper is in the ON state. The ESPresense clears and goes to the OFF state but because the mmWave sensor is in the ON state the group helper is still in the ON state and your lights stay ON. The automation just sits there waiting for the group helper to go to the OFF state before the time delay is activated and your lights turn OFF. No more flapping your arms around. Then the automation works perfectly.

Hope this make sense.

This is a link to one of our FAQ on how to set up a group helper for this reason. Click Here

PS

You could create a binary template sensor that detects when the TV is ON so you don’t have to flap your arms around while watching a movie.

1 Like