-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aqara Motion and Daylight sensor reporting wrong lux level / wrong "dark" parameter #987
Comments
On further testing, I think the problem is only with the sensor hardware. I placed all my sensors beside each other, in a room with uniform lighting. The above lux values in the image were reported by deconz. Is there a way in which I can tune the sensitivity of the sensor in deconz? |
In my opinion the values are fine and expected, two things to note here:
You may install a app to measure this in realtime like |
Thanks for the tip about the logarithmic scale. I placed all sensors right next to each other with just one source of light in front of them, about 10 feet away. I understand from what you say, that even small variations in light can lead to different lux values, but seeing 25 Lux and 83 Lux is a bit extreme, don't you think? The problem becomes really apparent at low light levels. The sensors, which are showing 25 and 33 lux in the previous image, go down to 1 or 2 lux at low (nearly dark) light levels, which is as expected. But these other 2 sensors, which are showing 66 and 83 lux in the previous image, still continue showing 25+ lux at dark, really low light levels. This causes the So, seeing the above, I cannot understand how these values can be considered fine or expected. Please correct me if my understanding is wrong. |
For this specific sensor they should be fine, it's a 10$ sensor for primarily motion sensing. In my opinion the light sensor is ok to tell if there is 'no light at all' or 'some light'. But for finer resolution a specific light sensor should be used. In my experience with various consumer sensors I consider the range 20–200 Lux as very dynamic (aka it's the same for me), therefore you might use dark < 150. In office setups we often use dark < 300 Lux. |
You can set the thresholds for I don't know the Xiaomi motion sensor, but the Hue motion sensor only notifies the gateway immediately when the For the background on
|
Thank you for the detailed answer @ebaauw.
Do you mean the deconz API? Is there some API documentation for this?
Suppose I set config.tholddark to 12000 and config.tholdoffset to 8000. According to what you said:
What happens if the measured light is between 12000 and 20000? |
Yes. The documentation seems to be missing from
Nothing. They remain on, or remain off. You want this “twilight zone” to prevent the lights from constantly flipping on and off when the sensor registers too much light when they’re on. See |
Thank you for this. I thought deconz was limited to what is available through the web UI. The API has just opened up a new world for me. :-) I have tuned the I will close this issue once I confirm that the Update: It worked! Thank you. |
I have a Xiaomi Aqara motion sensor, which has the daylight sensor built-in. It is imported into deconz using the Phoscon UI (I have a RaspBee). I have a problem with the light level which is reported by deconz. I am on deconz version 2.05.47 using the docker image here: https://github.com/marthoc/docker-deconz.
The light level reported is extremely random. Even in total darkness, I see in the Phoscon UI that the lux is shown to be above 25. When motion is triggered, the websocket message is as following:
You can see that the motion sensor triggered the output, but the light sensor's output shows a lux of 27, and the
dark
parameter is set tofalse
. This prevents any of the rules from triggering, because the Hue bridge thinks there is enough light (I use diyHue emulated Hue bridge).Very rarely, the lux level shown comes down to less than 10 and
dark
is set totrue
(this is in total darkness). And then, the rules set up in the Hue app work. But this happens very rarely.What could be the problem? Any suggestions as to how I can debug this would be very helpful.
Is it possible that the daylight sensor hardware is broken?
Thanks!
The text was updated successfully, but these errors were encountered: