Closed mx-web closed 5 years ago
Thank you very much for using node-milight-promise!
Am I right in assuming you have a Dual-White Bulb? In this case please have a look at example-dual-white-v6.js. The command functions are warmer(zone)
and cooler(zone)
which increase/decrease the white color temperature. Note, the milight firmware does not provide for setting an absolute temperature value at this point. I am also assuming here you have an iBox 1 or 2 bridge. If you own an older milight bridge have a look at example-dual-white.js for the the legacy interface.
In case you have a Full Color Bulb, see example-full-colour. The command function in this case is whiteTemperature(zone, percent)
where a relative percentage between lower and upper color temperature is specified as prescribed by the milight firmware.
light.sendCommands(commands.fullColor.whiteTemperature(0, 100)) worked for me!
That's great. Btw, the percent values roughly map to the following temperatures:
I'm using a CW / WW light bulb