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

xiaomi-gateway mi issue #15

Open
VagelisAn opened this issue Nov 27, 2018 · 0 comments
Open

xiaomi-gateway mi issue #15

VagelisAn opened this issue Nov 27, 2018 · 0 comments

Comments

@VagelisAn
Copy link

i have this issue if some one can help me please

[2018-11-27 22:07:41] Loaded config.json with 1 accessories and 1 platforms.
[2018-11-27 22:07:41] ---
[2018-11-27 22:07:43] Loaded plugin: homebridge-mi-gateway
[2018-11-27 22:07:43] Registering accessory 'homebridge-mi-gateway.MiGateway'
[2018-11-27 22:07:43] ---
[2018-11-27 22:07:43] Loaded plugin: homebridge-xiaomi-gateway
[2018-11-27 22:07:43] Registering platform 'homebridge-xiaomi-gateway.XiaomiGatewayPlatform'
[2018-11-27 22:07:43] ---
[2018-11-27 22:07:43] Loading 1 platforms...
/usr/lib/node_modules/homebridge/lib/api.js:108
  if (name.indexOf('.') == -1) {
           ^

TypeError: Cannot read property 'indexOf' of undefined
    at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:108:12)
    at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:316:45)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:86:36)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "111-55-444"
},

"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

"accessories": [{
"accessory": "MiGateway",
"ip": "192.168.1.4",
"token": "32ds66a52f6dsfd62f6sd",
"name": "MiGateway",
"fmName": "FM",
"lightName": "Lightbulb",
"securityName": "Security"
}],

"platforms": [{

}]
}

Thanks for your time

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

1 participant