Skip to content
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

Add the real LUX value as option. (Formula added) #49

Closed
Travelbacon opened this issue May 5, 2018 · 1 comment
Closed

Add the real LUX value as option. (Formula added) #49

Travelbacon opened this issue May 5, 2018 · 1 comment

Comments

@Travelbacon
Copy link
Contributor

Travelbacon commented May 5, 2018

Just to discuss.

Brightness' lightLevel is now the INT16 defined by Philips to make Lux more understandable. Lux is in real life not a linear value. "Light level in 10000 log10 (lux) +1 measured by sensor. Logarithm scale used because the human eye adjusts to light levels and small changes at low lux levels are more noticeable than at high lux levels." HUE-API documentation of Philips.

Is it an option to create an extra output LUX or an extra node?
The formula is Math.pow(10, (INT16 - 1)/10000);
Or

lux = lightLevel - 1
lux = lux / 10000
lux = Math.pow(10, lux)

msg.payload = Math.round(lux)
return msg;

Before I create one and suggest as a pull, I rather discuss. :)

@Travelbacon Travelbacon changed the title Lux is not Lux but Philips Human Readbale value Add the real LUX value as option. (Formula added) May 5, 2018
Foddy pushed a commit that referenced this issue Jun 16, 2018
* New increment/decrement brightness setting in Hue Light and Hue Group nodes ([3a6977a](3a6977a))
* New real lux property to Hue Brightness event outputs ([thanks @Travelbacon](#49))
* Added colorTemp property to Hue Light event outputs ([f8d237d](f8d237d))
* Manipulation of the update interval setting to avoid API errors with many devices
* Fixed some annoying typos
* Dependency updates
@Foddy
Copy link
Owner

Foddy commented Jun 16, 2018

Thank you for this.
The output object is now extended with the lux property on all Hue Brightness nodes with v1.5.6

@Foddy Foddy closed this as completed Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants