Open astrojetson8 opened 7 years ago
@aholstenson @Bluebie
i've had series of homebridge crash since yesterday
here's the upgrade path i followed:
homebridge-aqara
0.1.9 to 0.1.11
homebridge-miio
0.2.0 to 0.2.1
miio
0.6.0 to 0.8.0
[2017-4-27 14:10:09] [XiaomiMiio] Couldn't investigate device { id: 52248673, address: '192.168.31.234', port: 54321, token: '00000000000000000000000000000000', lastSeen: 1493273407376, writeOnly: true } Error: Timeout at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23) (node:38595) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'model' of undefined (node:38595) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. It can work, WHY?
@astrojetson8 Thanks. This helped me spot a bug in miio
related to Yeelights where discovery of tokens does not work. There is a fix in 0.9.1 but that version has several API changes that are not compatible with 0.7.0 that homebridge-miio
uses.
@Bluebie The two big things in 0.9.x are that power channels now have names (but most are still 0 and 1 and so on) and that I renamed miio.browser
to miio.browse
. 0.10 is coming soon as well, going to rename switch
and add a few types and supported models.
@eviewei The error you are seeing is because the device is not revealing its token automatically. As the token is all zeroes I'm guessing it's a Yeelight. The library used by homebridge-miio
had a bug related to that, see my previous comment in this thread for a bit more details
This is more of FYI post:
I've updated to latest release of miio and homebridge-miio, and I can now see and manage my Wi-Fi power strip on Homebridge. And everything else seem to work fine.
I seem to be getting following few times in the log. This is Yeelight LED strip. I have 2 of these but only 1 seems be causing below: