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: Cannot read property 'sid' of null #59

Open
flamework1986 opened this issue Apr 4, 2017 · 3 comments
Open

TypeError: Cannot read property 'sid' of null #59

flamework1986 opened this issue Apr 4, 2017 · 3 comments

Comments

@flamework1986
Copy link

Hello. Cant start Aqara with this error:
`Load homebridge-aquara.AquaraPlatform
C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge-aquara\lib\AquaraPlatform.js:61
var sid = config['sid'];
^

TypeError: Cannot read property 'sid' of null
at AquaraPlatform.loadConfig (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge-aquara\lib\AquaraPlatform.js:61:19)
at new AquaraPlatform (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge-aquara\lib\AquaraPlatform.js:50:8)
at Server._loadDynamicPlatforms (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge\lib\server.js:315:30)
at Server.run (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge\lib\server.js:82:8)
at module.exports (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge\lib\cli.js:40:10)
at Object. (C:\Users\Admin\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge:17:22)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
My config:
"bridge": {
"name": "HomeBridge",
"username": "CC:22:3D:E3:00:00",
"port": 51826,
"pin": "031-00-00"
},

"platforms": [ {
"platform": "AqaraPlatform",
"fakeLightBulbForLightSwitch": true,
"sid": [ "00:00:07:89:1D:A7" ],
"password": [ "B9A1B03800000000" ]
}],
"description": "HomeBridge HTTP Status Control",
"accessories": [ {
"accessory": "Http",
"name": "Alfresco Lamp",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/controller/1700/ON",
"off_url": "http://localhost/controller/1700/OFF",
"status_url": "http://localhost/status/100059",
"service": "Light",
"brightnessHandling": "yes",
"brightness_url": "http://localhost/controller/1707/%b",
"brightnesslvl_url": "http://localhost/status/100054"

}]}

@flamework1986
Copy link
Author

flamework1986 commented Apr 20, 2017

I think that it cant to load sid&pass from config.json. I was edit .js vars to use my sid&pass, but now get new error:
error, msg - bind EADDRINUSE 0.0.0.0:9898, stack - Error: bind EADDRINUSE 0.0.0.0:9898
at Object.exports._errnoException (util.js:893:11)
at exports._exceptionWithHostPort (util.js:916:20)
at dgram.js:221:18
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Function.Module.runMain (module.js:449:11)
at startup (node.js:148:18)
at node.js:405:3
Was update to 11 version, but nothing changes

@flamework1986
Copy link
Author

Update to 12 version - no way :(

@derekhuangxu
Copy link

hey,have you resolved this problem?

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