homebridge-nest icon indicating copy to clipboard operation
homebridge-nest copied to clipboard

Troubles with Nest setup, no Token?

Open sschnoor opened this issue 6 years ago • 0 comments

Hi. I'm brand new to homebridge. Running on a Rasberry Pi3. Figured I'd connect my Nest thermostats as the first thing I attempt.....

I followed the setup instructions, created the Nest dev account, etc. Config.json is as follows,

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": XXXXXXXXXX, "pin": "XXXXXXXXXX" },

    "description": "foo",

    "accessories": [
            {

            }
    ],

    "platforms": [
            {
            "platform": "Nest",
            "clientId": "XXXXXXXXXX",
            "clientSecret": "XXXXXXXXXX",
            "code": "XXXXXXXXXX"

            }
    ]

}

After I launch homebridge, this is what I get .....

[2018-10-14 13:36:37] Loaded config.json with 1 accessories and 1 platforms. [2018-10-14 13:36:37] --- [2018-10-14 13:36:38] Loaded plugin: homebridge-nest [2018-10-14 13:36:38] Registering platform 'homebridge-nest.Nest' [2018-10-14 13:36:38] --- [2018-10-14 13:36:38] Loading 1 platforms... [2018-10-14 13:36:38] [Nest] Initializing Nest platform... [2018-10-14 13:36:38] [Nest] Fetching Nest devices. [2018-10-14 13:36:38] Loading 1 accessories... /usr/local/lib/node_modules/homebridge/lib/api.js:50 if (name.indexOf('.') == -1) { ^

TypeError: Cannot read property 'indexOf' of undefined at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:50:11) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:286:42) at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:87:38) at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10) at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:575:3

I'm not sure if this is the right place to ask for help? If not please tell me where to go. Any guidance is appreciated. Thank you.

sschnoor avatar Oct 14 '18 20:10 sschnoor