nfarina / homebridge-sonos

Sonos plugin for homebridge: https://github.com/nfarina/homebridge
155 stars 52 forks source link

TypeError: Cannot read property 'indexOf' of undefined #35

Closed mwhaley99 closed 7 years ago

mwhaley99 commented 7 years ago

[8/8/2016, 12:06:05 PM] Loading 3 platforms... /usr/local/lib/node_modules/homebridge/lib/api.js:92 if (name.indexOf('.') == -1) { ^

TypeError: Cannot read property 'indexOf' of undefined

HELP!

mwhaley99 commented 7 years ago

my config.json (x'd out all secret info)

{ "bridge": { "name": "Homebridge", "username": "xxxxxxx", "port": 51826, "pin": "xxxxxx" }, "accessories": [{

}, {
    "accessory": "LiftMaster",
    "name": "Garage Door",
    "username": "johnb@me.com",
    "password": "xxxxxxxxxx",
    "deviceID": "xxxxxxx"
}],
"platforms": [{}, {

    "platform": "Nest",

    "token": ".xxxxxxxxxxxxxx... ",

    "clientId": "mark",
    "clientSecret": "xxxxxxxxxxxxxxxx",
    "code": "xxxxxxxxxxxx",

    "username": "johnb@me.com",
    "password": "xxxxx"
}, {
    "platform": "SmartThings",
    "name": "SmartThings",
    "app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/",
    "app_id": "xxxxxxxxxxxxxxxxxx",
    "access_token": "xxxxxxxxxxxxxxxxxxx"
}]

}

mwhaley99 commented 7 years ago

worked out issue with coding