Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Yeelights #74

Open
kiwikern opened this issue Sep 22, 2017 · 2 comments
Open

Error with Yeelights #74

kiwikern opened this issue Sep 22, 2017 · 2 comments

Comments

@kiwikern
Copy link

I've added a couple of different Yeelight devices (color bulb, white bulb, desk lamp).
With all of them, I experience the same behavior: Triggering an action results in at least five 'DONE' toast messages, but turning the lamps on/off works. When changing either color or brightness, the controls wildly change (turning on/off several times etc.) until this error message appears:

error [pimatic]: An uncaught exception occurred: TypeError: Cannot read property 'location' of undefined
    at Yeelight._matchDevice (/home/pi/pimatic-app/node_modules/pimatic-led-light/devices/yeelight.coffee:124:8)
    at Yeelight._this.disconnectHandler (/home/pi/pimatic-app/node_modules/pimatic-led-light/devices/yeelight.coffee:55:15)
    at emitOne (events.js:82:20)
    at Yeelight.emit (events.js:169:7)
    at Yeelight.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-yeelight/index.js:73:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Socket.emit (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:63:24)
    at TCP._onclose (net.js:486:12)
 This is most probably a bug in pimatic or in a module, please report it!
@kiwikern
Copy link
Author

Switching to the v0.9.x branch using these instructions and creating the devices (for the yeelights) manually via the config resolved the issue. (sorry!)

@kiwikern
Copy link
Author

Unfortunately, the error still occurs after the update.

error [pimatic]: An uncaught exception occurred: TypeError: Cannot read property 'location' of undefined
    at Yeelight._matchDevice (/home/pi/pimatic-app/node_modules/pimatic-led-light/devices/yeelight.coffee:124:8)
    at Yeelight._this.disconnectHandler (/home/pi/pimatic-app/node_modules/pimatic-led-light/devices/yeelight.coffee:55:15)
    at emitOne (events.js:82:20)
    at Yeelight.emit (events.js:169:7)
    at Yeelight.<anonymous> (/home/pi/pimatic-app/node_modules/node-yeelight/index.js:73:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Socket.emit (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:63:24)
    at TCP._onclose (net.js:477:12)
 This is most probably a bug in pimatic or in a module, please report it!

@kiwikern kiwikern reopened this Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant