Homekit homebridge-gardaget token

homekit
home-automation
authentication
Tags: #<Tag:0x00007f544073c698> #<Tag:0x00007f544073c4b8> #<Tag:0x00007f544073c328>

#1

I tried many time to replace the new access token from Garadget garage cloud login but every time I login and logout. The access token is changed all the time. Does anyone has the same issue and know how to fix this issue. I had my garadget garage device working before with homekit using Siri to control but I didn’t know access token is expired like 90 days. Any advices are welcome.


#2

Now it is possible to generate a token that does not expire. You can do it via the Garadget’s login form as before or directly through Particle call.


#3

How do I go about generate token not to expire using Garadget’s login form. Every time when I logout and login back in. The access token is not the same. Second, I using the config.json file to setup homebridge-garadget-plugin for my device. what is the correct format to use for generating token not to expire. Here is the sample of the config.json example out there.

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

“description”: “Garadget as an accessory.”,
“accessories”: [{
“accessory”: “Garadget”,
“name”: “Garage Door”,
“cloudURL”: “https://api.particle.io/v1/devices/”,
“deviceID”: “<>”,
“access_token”: “<>”,
“bypass”: “0”,
“args”: “{STATE}”
}],
“platforms”: [

]
}

Thanks.


#4

Please see this post for explanation of how to get the token from the web app. To generate non-expiring token, please make sure to use the link in my previous post (one with ?expires_in=0 parameter).

I’m not familiar with homebridge setup, but from its look the token goes on the right side of “access_token” in double quotes. Also for valid JSON use the regular double quote characters (") instead of (“ and ”).


#5

Hello,
I tried all the options you last posted and I still get the error. Not sure what else to try or set.

[Garage Door] Error getting state: null
[Garage Door] This means your access token expired. Replace in config.json

Thanks.


#6

Hi,

Is it possible to add login function to grab access token each time? It looks like Hook provides an option to do that. Having same issue with token constantly changing.


#7

This login link generates the token that doesn’t expire. Please give it a try.


#8

still get same error…

Homebridge is running on port 51826.
Jun 24 03:14:12 orangepipc homebridge[26160]: [2018-6-24 03:14:12] [Garage Door] Getting current state…
Jun 24 03:14:12 orangepipc homebridge[26160]: [2018-6-24 03:14:12] [Garage Door] Getting current state…
Jun 24 03:14:12 orangepipc homebridge[26160]: [2018-6-24 03:14:12] [Garage Door] Get ObstructionDetected…
Jun 24 03:14:13 orangepipc homebridge[26160]: [2018-6-24 03:14:13] [Garage Door] Error getting state: null
Jun 24 03:14:13 orangepipc homebridge[26160]: [2018-6-24 03:14:13] [Garage Door] Error getting state: null
Jun 24 03:14:13 orangepipc homebridge[26160]: [2018-6-24 03:14:13] [Garage Door] This means your access token expired. Replace in config.json
Jun 24 03:14:13 orangepipc homebridge[26160]: [2018-6-24 03:14:13] [Garage Door] Error getting state: null


#9

Okay… issue with values for deviceID and token. didn’t need the <<>> …