lled
v1.0.0
Published
LimitlessLED (a.k.a. MiLight) WiFi bridge v6 control library.
Downloads
9
Readme
lled
node.js library for controlling LimitlessLED (a.k.a. MiLight) WiFi bridges (v6+)
Install
npm install lled
Usage
var lled = require('lled')
lled.discover(function(error, bridges) {
if (error) throw error
bridges.forEach(function(bridge) {
var zone = 0 // 1-4, 0 = all zones
bridge.send(lled.Commands.RGBW.On(), 0, function(error) {
if (error) throw error
console.log('Turned on all RGBW bulbs.')
bridge.close() // closes the underlying socket allowing the process to exit
})
})
})
See examples/
for more and have a look at src/brige.coffee
for all options.
Notes
Altough the v6 bridges now ACKs the commands sent to it, that's not a guarantee the command reaches the lights since the 2.4ghz protocol the bridge uses to communicate with the lights are still one-way. So you are better off sending each command multiple times to ensure it reaches all lightbulbs.