-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Converting zigbee illuminance value to lux #1506
Comments
Fixed, thanks! |
I'm wondering wether this calculation is correct, in case of Shouldn't it be |
Any consensus on this? |
@tcwj2008 could you please check #1506 (comment) , if I don't hear anything I assume |
Reverted it back to the old calculation. |
I believe the new calculation is correct, but there also needs to be a special case for 0. The documentation states: ”0x0000 indicates a value of Illuminance that is too low to be measured." So if MeasuredValue == 0, then lx = 0. Otherwise use the new calculation. |
@presslab-us good to know, I've added it know with a check on 0 value. |
According to Zigbee doc (4.2.2.2.1)
so converting zigbee illuminance value to lux should be
not
lx = 10^(MeasuredValue/10000)-1
The text was updated successfully, but these errors were encountered: