Lights a long presence

Hey, I have a problem with Sonoff presence sensors. I adjusted everything so that the lights turn off after 15 seconds, but despite this, the light turns off after 30-60 seconds on average, which is very annoying. Do you have a solution to make the light turn off after 5 seconds? I leave the bathroom, I’m not there, and I want it to turn off, that’s all, and not shine pointlessly for no reason.

Most presence sensors have a delay when they go from detected to clear.

Watch the sensor status when you leave the area and see how long it takes to change to clear. You may not need the delay in your automation at all.

in my case the minimum for:

  • IR (SNZB-03P) is 5 seconds.
  • Radar (SNZB-06P) is 15 seconds.

Unless you want to add additional sensors (such as a contact sensor on the door) there is no way to drop the timeouts lower than that.

  1. how does your automation look like? What Model do you have? How is it connected? (if Zigbee: ZHM or Zigbee2mqtt?)
  2. Can you post the logbook of the motion sensor entity?
    3.Do your Sensors have a “hardcoded” timeout maybe?
    If you dont know: look into the manufacturer docs OR look at the entity when it does go to “absent” → move your hand until it detects and make sure nothing triggers it and look what the “minimum” time is.

If you cannot change the timeout then your presence sensors are just not suitable for your needs and need to be changed out or modified by hardware (some can be modded by soldering)

So basically:

  1. either your automation does not make sense
  2. The Entity (your motion sensor) does not change from present to away “fast enough”
  3. A huge issue with HA which is super unlikely

I did some digging into this issue and it turns out that it is a problem with version 1.0.6 of the software, which has ghosting issues. At the moment, the only solution is to increase the time. I had it set to 15 seconds, so I changed it to 20 and am testing it. But I want to keep it to the absolute minimum.