Giter Club home page Giter Club logo

Comments (10)

stelgenhof avatar stelgenhof commented on September 26, 2024

Thank you for reporting this. It says you have Homebridge 0.4.38 installed whereas this plugin only supports up 0.4.28.

from homebridge-ailight.

Supersimo88 avatar Supersimo88 commented on September 26, 2024

I saw the error, I wanted to know if it was possible to update the plugin to be compatible with the latest version of homebridge, thanks

from homebridge-ailight.

stelgenhof avatar stelgenhof commented on September 26, 2024

I haven't tested it myself yet, however you can try with 0.4.38 by changing the version number in the package.json file. I will do some testing first and then release a new update (may take some days) :)

from homebridge-ailight.

Supersimo88 avatar Supersimo88 commented on September 26, 2024

[2018-2-25 12:15:16] Plugin /usr/local/lib/node_modules/homebridge-ailight requires Node version of 6.11.3 which does not satisfy the current Node version of v8.2.1. You may need to upgrade your installation of Node.
[2018-2-25 12:15:22] Loaded plugin: homebridge-ailight
[2018-2-25 12:15:22] Registering accessory 'homebridge-ailight.AiLight'
[2018-2-25 12:15:22] ---
[2018-2-25 12:15:22] Loaded config.json with 1 accessories and 0 platforms.
[2018-2-25 12:15:22] ---
[2018-2-25 12:15:22] Loading 0 platforms...
[2018-2-25 12:15:22] Loading 1 accessories...
[2018-2-25 12:15:22] [Bedroom Light] Initializing AiLight accessory...
Setup Payload:
X-HM://0023ISYWYPP9C
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[2018-2-25 12:15:24] Homebridge is running on port 51826.
/usr/local/lib/node_modules/homebridge-ailight/index.js:132
this.log('Error getting State (statuscode %s): %s', response.statusCode, error);
^

TypeError: Cannot read property 'statusCode' of undefined
at AiLightAccessory. (/usr/local/lib/node_modules/homebridge-ailight/index.js:132:69)
at Request._callback (/usr/local/lib/node_modules/homebridge-ailight/index.js:47:7)
at self.callback (/usr/local/lib/node_modules/homebridge-ailight/node_modules/request/request.js:186:22)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at Request.onRequestError (/usr/local/lib/node_modules/homebridge-ailight/node_modules/request/request.js:878:8)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at Socket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:115:13)

from homebridge-ailight.

stelgenhof avatar stelgenhof commented on September 26, 2024

This message could be the result of Homebridge not being able to communicate to your light bulb. Are you sure your light bulb is working properly and you can control it via the UI, REST API or MQTT?

from homebridge-ailight.

Supersimo88 avatar Supersimo88 commented on September 26, 2024

Yes, i can control the light via ui and mqtt
I've found the error, was in the config.json, my fault.

from homebridge-ailight.

stelgenhof avatar stelgenhof commented on September 26, 2024

Ok. Good to hear! So it works now?

from homebridge-ailight.

Supersimo88 avatar Supersimo88 commented on September 26, 2024

It works for on off, but it does not seem that the color change has any effect if not to set all the LEDs to 255

from homebridge-ailight.

stelgenhof avatar stelgenhof commented on September 26, 2024

Hmm, I need to check it myself. Haven't used it for a while.

from homebridge-ailight.

stelgenhof avatar stelgenhof commented on September 26, 2024

I've updated this package to use Homebridge v0.4.38. You can update it by simply executing the following statement: npm install -g homebridge-ailight.

from homebridge-ailight.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.