nmelo / homebridge-lifx Goto Github PK
View Code? Open in Web Editor NEWLIFx plugin for homebridge
License: MIT License
LIFx plugin for homebridge
License: MIT License
Error: getaddrinfo ENOTFOUND api.lifx.com api.lifx.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
If the lifx api is down, homebridge-lifx should treat the bulbs as unavailable, or try to operate over the LAN.
[LIFx] Initializing LIFx platform...
[LIFx] Fetching LIFx devices.
Loading 0 accessories...
*** UDP error Error: bind EADDRINUSE 0.0.0.0:56700
events.js:141
throw er; // Unhandled 'error' event
^
Error: bind EADDRINUSE 0.0.0.0:56700
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at dgram.js:213:18
at doNTCallback3 (node.js:452:9)
at process._tickCallback (node.js:358:17)
at Function.Module.runMain (module.js:469:11)
at startup (node.js:136:18)
at node.js:963:3
Dumb question so how exactly do I get this started with home bridge? I added it as a platform in my config and I guess it see's it because it says the platform initializes, but then nothing. It doesn't show up in my home kit app. However if I manually change the power state of the bulb while home bridge is running it says "unknown packet type 118" which is what leaves me to believe that it can see it.
How does this plugin handle the Lifx Z Strips being able to have multiple color zones?
As the issue states, this plugin is unable to change the LIFX lights colours via the LAN protocol.
(node) warning: possible EventEmitter memory leak detected. 11 bulbstate listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at Lifx.addListener (events.js:239:17)
at Object.LIFxBulbAccessory.getLan (/Users/nmelo/.nvm/versions/node/v5.1.0/lib/node_modules/homebridge-lifx/index.js:82:18)
at null. (/Users/nmelo/.nvm/versions/node/v5.1.0/lib/node_modules/homebridge-lifx/index.js:232:58)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at Characteristic.getValue (/Users/nmelo/.nvm/versions/node/v5.1.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:120:10)
at Bridge. (/Users/nmelo/.nvm/versions/node/v5.1.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:438:20)
at Array.forEach (native)
at Bridge.Accessory._handleGetCharacteristics (/Users/nmelo/.nvm/versions/node/v5.1.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:410:8)
at emitThree (events.js:97:13)
at HAPServer.emit (events.js:175:7)
Whenever I try to launch home bridge with the Lifx module configured Homebridge fails to load with error:
[LIFx] Initializing LIFx platform...
module.js:339
throw err;
^
Error: Cannot find module 'lifx'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.LIFxPlatform (/opt/local/lib/node_modules/homebridge-lifx/index.js:37:22)
at Server._loadPlatforms (/opt/local/lib/node_modules/homebridge/lib/server.js:195:32)
at Server.run (/opt/local/lib/node_modules/homebridge/lib/server.js:35:36)
at module.exports (/opt/local/lib/node_modules/homebridge/lib/cli.js:23:16)
at Object. (/opt/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
Currently, setting the brightness in the Home app using homebridge-lifx
fails.
Tracked it down to this line, which is setting null
for the power_on
parameter of the LIFX api setColor
function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.