mwittig / node-milight-promise

A node module to control Milight LED bulbs and OEM equivalents such as Rocket LED, Limitless LED Applamp, Easybulb, s`luce, iLight, iBulb, and Kreuzer
MIT License
114 stars 27 forks source link

V6: RGB BULBS SINGLE CHANNEL/ZONE #27

Closed Steiger04 closed 6 years ago

Steiger04 commented 6 years ago

Hi, for V6: RGB BULBS SINGLE CHANNEL/ZONE

RgbCommand.prototype.on = function(zone) { return [0x31, 0x00, 0x00, 0x05, 0x02, 0x09, 0x00, 0x00, 0x00, 0x01] };

and

RgbCommand.prototype.off = function(zone) { return [0x31, 0x00, 0x00, 0x05, 0x02, 0x0a, 0x00, 0x00, 0x00, 0x01] };

parameter zone is never used. Is that right?

thx Carsten

mwittig commented 6 years ago

Hi Carsten, yes that's right. As the the command set is for the single-channel RGB Command Control the zone isn't applicable. I'll remove the zone parameter in a future release for clarity. Marcus