YinHangCode / homebridge-mi-gateway-security

XiaoMi Gateway Security plugin for HomeBridge.
31 stars 5 forks source link

xiaomi-gateway mi issue #15

Open VagelisAn opened 5 years ago

VagelisAn commented 5 years ago

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