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

got errors after upgrade node to version v7.10.0 #80

Open
syu-lk4b opened this issue May 26, 2017 · 6 comments
Open

got errors after upgrade node to version v7.10.0 #80

syu-lk4b opened this issue May 26, 2017 · 6 comments

Comments

@syu-lk4b
Copy link

Try to get my broadlink RM work with my homekit as well. this require node version to at at least v7.6.0, after upgrade node version to v7.10.0
i got this issue, looks like aqara is not yet compatiable with Node7.10 yet?

anyone has the same issue?

homebridge
[5/26/2017, 5:29:06 PM] Loaded plugin: homebridge-aqara
[5/26/2017, 5:29:06 PM] Registering platform 'homebridge-aqara.AqaraPlatform'
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loaded plugin: homebridge-broadlink-rm
[5/26/2017, 5:29:06 PM] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loaded plugin: homebridge-camera-isight
[5/26/2017, 5:29:06 PM] Registering platform 'homebridge-camera-isight.Camera-iSight'
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loaded plugin: homebridge-homeassistant
[5/26/2017, 5:29:06 PM] Registering platform 'homebridge-homeassistant.HomeAssistant'
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loaded plugin: homebridge-miio
[5/26/2017, 5:29:06 PM] Registering platform 'homebridge-miio.XiaomiMiio'
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loaded config.json with 0 accessories and 1 platforms.
[5/26/2017, 5:29:06 PM] ---
[5/26/2017, 5:29:06 PM] Loading 1 platforms...
[5/26/2017, 5:29:06 PM] [Broadlink RM] Initializing BroadlinkRM platform...
[5/26/2017, 5:29:06 PM] [Broadlink RM] Initializing platform accessory 'Learn'...
[5/26/2017, 5:29:06 PM] [Broadlink RM] Initializing platform accessory 'Scan Frequency'...
[5/26/2017, 5:29:06 PM] [Broadlink RM] Initializing platform accessory 'Auto-off Switch'...
[5/26/2017, 5:29:06 PM] [Broadlink RM] Initializing platform accessory 'TV On/Off'...
[5/26/2017, 5:29:06 PM] Loading 0 accessories...
Load homebridge-aqara.AqaraPlatform
/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:26
if (config['sensor_names']) {
^

TypeError: Cannot read property 'sensor_names' of null
at new AqaraAccessoryFactory (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:26:13)
at new AqaraPlatform (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraPlatform.js:27:18)
at Server._loadDynamicPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:315:30)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:82:8)
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:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

@timh1004
Copy link

Try deleting ~/.homebridge/accessories/cachedAccessories

@syu-lk4b
Copy link
Author

tried, it's the same error

@licuhui
Copy link

licuhui commented May 27, 2017

Need to use v 6.X.X

@syu-lk4b
Copy link
Author

no idea of nodejs program, anyone can provide some idea, so I may help fix this in Node version 7?

@syu-lk4b
Copy link
Author

i installed another homebrige with node7 by using NVM, so far it temporary fixed my need, but this is still a issue as ultimately everything has to move to new version.

@jm0477
Copy link

jm0477 commented Aug 8, 2017

I had the same issue like yours, my solution is uninstall the homebridge-aqara plugin.
Previously I installed "homebridge-aqara" before homebridge-mi-aqara.
so solution simply is:
sudo npm remove homebridge-aqara then it works for me.
Hope it can be helpful for others.

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

4 participants