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

Issues retrieving token

Open rab523 opened this issue 7 years ago • 5 comments

I am on the step where I run the homebridge and get a token to put in the config file. When I run the home bridge, I do not see anything about a token.

Here is my config...

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" },

"platforms": [{
        "platform": "Nest",
    
        "token" : "",
    
        "clientId": "27726524-4d62-4dc6-9e88-8983978e96df",
        "clientSecret": "mqvw3NLh5jxNetMgl3fi8VPCz",
        "code": "B7NX9URM"

    },
    {
        "platform": "HarmonyHub",
        "name": "Harmony Hub"
    }
],

"platforms": [
   {
       "platform": "BelkinWeMo",
       "name": "WeMo Platform"
}]

}

And here it the result...

Last login: Tue Dec 19 23:15:37 on ttys001 Js-Mac-Pro:~ hjg523$ homebridge [12/19/2017, 11:25:50 PM] Loaded plugin: homebridge-harmonyhub [12/19/2017, 11:25:50 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub' [12/19/2017, 11:25:50 PM] --- [12/19/2017, 11:25:51 PM] Loaded plugin: homebridge-nest [12/19/2017, 11:25:51 PM] Registering platform 'homebridge-nest.Nest' [12/19/2017, 11:25:51 PM] --- [12/19/2017, 11:25:51 PM] Loaded plugin: homebridge-platform-wemo [12/19/2017, 11:25:51 PM] Registering platform 'homebridge-platform-wemo.BelkinWeMo' [12/19/2017, 11:25:51 PM] --- [12/19/2017, 11:25:51 PM] Loaded config.json with 0 accessories and 1 platforms. [12/19/2017, 11:25:51 PM] --- [12/19/2017, 11:25:51 PM] Loading 1 platforms... [12/19/2017, 11:25:51 PM] [WeMo Platform] Initializing BelkinWeMo platform... Load homebridge-harmonyhub.HarmonyHub [12/19/2017, 11:25:51 PM] [homebridge-harmonyhub.HarmonyHub] Ignoring Harmony Platform setup because it is not configured Setup Payload: X-HM://0023ISYWYH5EE Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

rab523 avatar Dec 20 '17 04:12 rab523

It looks like you're defining the platforms array twice. It should be something like this:

 {
 	"bridge": {
 		"name": "Homebridge",
 		"username": "CC:22:3D:E3:CE:30",
 		"port": 51826,
 		"pin": "031-45-154"
 	},
 	"platforms": [
                {
 			"platform": "Nest",
 			"token": "",
 			"clientId": "27726524-4d62-4dc6-9e88-8983978e96df",
 			"clientSecret": "mqvw3NLh5jxNetMgl3fi8VPCz",
 			"code": "B7NX9URM"
 		},
 		{
 			"platform": "HarmonyHub",
 			"name": "Harmony Hub"
 		},
 		{
 			"platform": "BelkinWeMo",
 			"name": "WeMo Platform"
 		}
 	]
 }

adrum avatar Dec 20 '17 04:12 adrum

@rab523 I would also recommend deleting your app (and the generate another) from the Nest Developer site if the clientId, clientSecrect and code posted above are their real values. This exposes your devices to anyone who comes here to see this. In the future, redact sensitive information like that.

adrum avatar Dec 20 '17 14:12 adrum

Thanks! I changed them before posting them here.

Robby

On Dec 20, 2017, 9:25 AM -0500, Austin Drummond [email protected], wrote:

@rab523 I would also recommend deleting your app (and the generate another) from the Nest Developer site if the clientId, clientSecrect and code posted above are their real values. This exposes your devices to anyone who comes here to see this. In the future, redact sensitive information like that. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

rab523 avatar Dec 20 '17 14:12 rab523

This did the trick! Thank you greatly.

Robby

On Dec 19, 2017, 11:46 PM -0500, Austin Drummond [email protected], wrote:

It looks like you're defining the platforms array twice. It should be something like this: { "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "platforms": [ { "platform": "Nest", "token": "", "clientId": "27726524-4d62-4dc6-9e88-8983978e96df", "clientSecret": "mqvw3NLh5jxNetMgl3fi8VPCz", "code": "B7NX9URM" }, { "platform": "HarmonyHub", "name": "Harmony Hub" }, { "platform": "BelkinWeMo", "name": "WeMo Platform" } ] } — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

rab523 avatar Dec 20 '17 14:12 rab523

Awesome! Glad to hear it worked.

adrum avatar Dec 20 '17 15:12 adrum