Default color temperature values
NovapaX opened this issue · 2 comments
When no homebridge specific min/max values are configured it seems to me that it would be a logical thing to fallback to using 'min_mireds' and 'max_mireds' from entity attributes if defined.
So first try 'homebridge_min_mireds' and 'homebridge_max_mireds'
then try 'min_mireds' and 'max_mireds'
and then fall back to default of 50 and 400
I have no time currently to write the code (it's not that much of course, a little code change here:
homebridge-homeassistant/accessories/light.js
Line 118 in bd07d36
And I certainly have no way (yet) to test it. Sorry for that. I want to contribute, but still setting things up.
I used that method initially, but it didn't have the best results because Home Assistant doesn't report max_mireds
and min_mireds
when the lightbulb is turned off (at least for my LIFX bulbs). As a result, the color temperature range would fluctuate and sometimes become unresponsive.
If you can test and get different results than me, then I'm all for it. But from my initial checking, the current method seemed to be the most reliable and robust (even though it's admittedly a pain to setup initially).