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

TypeError: miio.Device is not a constructor after milo update to 0.15.2 #16

Open
Smart71 opened this issue Jan 25, 2018 · 2 comments
Open

Comments

@Smart71
Copy link

Smart71 commented Jan 25, 2018

Hi,

after reinstalling the plugin i there comes a new version of miio 0.15.2 and after this could not start homebridge anymore.

Error
[2018-1-25 17:50:08] [Eyecare2] Initializing MiPhilipsLightPlatform platform...
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] MiPhilipsLightPlatform v0.2.2 By YinHang
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-philips-light
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] QQ Group: 107927710
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]start success...

/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsTableLamp2.js:16
this.device = new miio.Device({
^
TypeError: miio.Device is not a constructor
at new MiPhilipsTableLamp2 (/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsTableLamp2.js:16:19)
at MiPhilipsLightPlatform.accessories (/usr/local/lib/node_modules/homebridge-mi-philips-light/index.js:91:21)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:617:3

any idea to solve the problem?

@YinHangCode
Copy link
Owner

You can use 'npm install -g miio@0.14.1' temporarily, then I'll think about a solution.

@Smart71
Copy link
Author

Smart71 commented Jan 26, 2018

Thanks, this works for now...

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

2 participants