-
Notifications
You must be signed in to change notification settings - Fork 638
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
Mi Desklamp Mired Scaling incorrect #1941
Comments
Those are generic default values: Line 1977 in 0a11a74
espurna/code/espurna/config/general.h Lines 1213 to 1229 in 1949bc8
Do you mean that Desklamp defaults should have those set to 2700 and 6500 instead of 2000 and 6553? |
Yes. I think so. According to the product specs https://www.xiaomitoday.com/xiaomi-mijia-mjtd01yl-led-desk-lamp-review/
Right now when I want to have 2700k color temperature with the lamp I have to move the slider to 500mired in the webinterface So the problem is when the color temperature is set externally via mqtt (e.g 370 mireds come in from homeassistant flux or circadian addon) |
Ok, so the configuration needs to change.
Runtime setting could be useful too, |
Sounds great. |
espurna/code/espurna/light.ino Lines 1286 to 1287 in c18490c
Mired cold and warm limits now are read from settings too, things are properly balancing out now Webui updated too, with a supprisingly small change. I am not sure if depending on these keys ordering is ok in JS, but it seems to work just fine xiaomi-desklamp builds now use the suggested colortemp values |
thanks. works fine now |
I notices something when playing around with homeassistant and the fluxer component. The xiaomi desklamp has a color range from 2700k to 6500k (370mired to 153mired)
When using Fluxer to adjust color temperature to 2700k it sends the 370mired to the lamp. However the lamp on the led is still coldish white.
To have correct 2700k warm light I have to move the mired slider all to the right on espurnas webinterface to 500mireds which however equals 2000k.
Are there some settings where the mired range of the light could be adjusted?
The text was updated successfully, but these errors were encountered: