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
Cannot read property 'on' of undefined #95
Comments
Also: it reports '0 accessories' and just deleted my motion sensor.. |
Powering off the Bridge does not give any errors in the Homebridge window. |
Did you specify the bridge as Could you please list the output of |
@ebaauw I did, and it still has. Output:
|
Please list the full debug output, incl. version numbers, requests, etc. It would seem Homebridge-hue did at least get its name from your bridge... |
Whoops sorry @ebaauw, here's everything: [2017-4-18 15:22:13] Loaded plugin: homebridge-dummy
[2017-4-18 15:22:14] Homebridge is running on port 51826. |
Thanks, @jojost1. That narrows down where the Cannot read property 'on' of undefined error message comes from, but, frankly, I have no clue what's causing it. I didn't change that part of the code in v0.3.15. What version where you on before the update?
These are consequences of the first error. My best guess is a somehow corrupted installation. Some longshots:
|
Thanks for the quick response!
v0.3.14 if I'm correct.
Did that and tried it again, didn't help :(
I did, before updating homebridge-hue.
Bit difficult to test right now. I have to say I did notice the same exact error in my other home, but there I still had my dimmer switch & tap in HomeKit.
No specific reason. How to 'downgrade' to stable? Can try that. Thanks! |
And re-installing v0.3.14 gets rid of the error?
"Other home" as in another Hue bridge, another installation of homebridge on a another machine?
That would be because you killed homebridge in time? If it's the same error, homebridge would run without homebridge-hue exposing anything, causing HomeKit to delete the accessories. |
Nope, it looks like I get the error with v0.3.14/15/17.
Yes, another Bridge, another installation of homebridge, on a completely different Mac. Only common denominator I think is the installation of homebridge-iTunes I was messing around with. Homebridge-hue works on the other Mac right now, but that might be because I deleted homebridge-iTunes there.. I think it is likely that plugin causes problems, is that possible?
See above, I think the plugin exposed the accessories after uninstalling homebridge-iTunes and I don't think I get the error right now (in the other home, my own home is still not working!), sorry I'm unclear ;) Thanks. |
Sadly, yes. They override Characteristic.prototype.updateValue(), which is scary at best. To make it worse, they break it by failing to return the characteristic for chaining. homebridge-hue tries to register an event handler on the return value of |
Getting this error since the latest update, in two different homes, on startup.
The text was updated successfully, but these errors were encountered: