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

Errors on startup #8

Open
iCarl opened this issue May 10, 2017 · 5 comments
Open

Errors on startup #8

iCarl opened this issue May 10, 2017 · 5 comments

Comments

@iCarl
Copy link

iCarl commented May 10, 2017

I'm getting errors upon startup.
NodeJS v6.9.5
NPM 3.10.10
The Aqara version works without issues.

Load homebridge-mijia.MiJiaPlatform
/usr/lib/node_modules/homebridge-mijia/lib/MiJiaAccessoryFactory.js:26
  if (config['sensor_names']) {
            ^

TypeError: Cannot read property 'sensor_names' of null
    at new MiJiaAccessoryFactory (/usr/lib/node_modules/homebridge-mijia/lib/MiJiaAccessoryFactory.js:26:13)
    at new MiJiaPlatform (/usr/lib/node_modules/homebridge-mijia/lib/MiJiaPlatform.js:27:18)
    at Server._loadDynamicPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:315:30)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:82:8)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
@eviewei
Copy link

eviewei commented May 16, 2017

same problem

@timh1004
Copy link

timh1004 commented May 21, 2017

I had the same problem, but after uninstalling the homebridge-aqara plugin, it works fine for me. Seems like you can't have the installed both at the same time.

Edit: And I think you have to remove the cachedAccessories file in .homebridge/accessories/ after changing the plugins. Otherwise it tries to add a device with the same ID a second time and crashes.

@magichew
Copy link

magichew commented Jun 1, 2017

I had the same problem, but after uninstalling the homebridge-aqara plugin, it works fine for me. Seems like you can't have the installed both at the same time.

What's the command for uninstalling please?

@timh1004
Copy link

timh1004 commented Jun 2, 2017

npm uninstall -g homebridge-aqara

@new4u
Copy link

new4u commented Oct 17, 2018

npm uninstall -g homebridge-aqara

Thanks, thats very helpful!

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

5 participants