Closed ascl00 closed 3 years ago
So... this is user error, but I think it'd be useful to at least document this (if not deal with it in the code). As "mired" values get smaller, "kelvin" values get bigger, since the conversion from kelvin to mired is (as I have since learned) m = 1,000,000/k . This makes "min" and "max" inverted to what I would expect when configuring a kelvin device.
So, AFAICT, the correct configuration for my device is:
"unit":"kelvin",
"minValue":6500,
"maxValue":1200
... which is far from intuitive!
Describe the bug Configuring a colorTemp range (in kelvin) seems to result in this error: Error: Error setting for 'Color Temperature': 'minValue' cannot be greater or equal the 'maxValue'Error
Expected behavior Well, for the config to work!
To Reproduce Steps to reproduce the behavior:
Config as above. Error on startup:
Version (output of
npm list -g homebridge homebridge-http-lightbulb
)Configuration
Additional context Seems likely to be related to the Characteristics changes in homebridge 1.3