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

Implement Custom UI to Facilitate Refresh Token Generation

Open jvartanian opened this issue 1 year ago • 4 comments

Using the Homebridge Custom Plugin UI library, implements a custom config UI that makes it easier to generate refresh tokens.

The new UI requires that the user input a client ID, client secret, SDM project ID, & PubSub subscription. Once these values are present, the user can click the Initiate Google Login button, which will open the Google OAuth URL in a new tab.

Once the user completes the login flow, they can copy the resulting google.com link into the Auth URL text box. A refresh token will then be automatically generated and populated into the config.

Screenshot 2023-12-30 at 9 38 08 AM

Addresses #16

jvartanian avatar Dec 29 '23 21:12 jvartanian

Wow, this is amazing! I’m afraid I’m out of the country for a week or two so I’ll review it as soon as I get back. I really appreciate your contribution making no mistake.

potmat avatar Dec 30 '23 03:12 potmat

When I open the settings screen on an already configured system I just see this:

image

potmat avatar Jan 13 '24 20:01 potmat

When I open the settings screen on an already configured system I just see this:

image

I'm having a hard time reproducing this issue. I just tested the upgrade path on my mac's homebridge server, and my raspberry pi's, both displayed the custom UI successfully.

Do you see an error toast, or a console log?

jvartanian avatar Feb 10 '24 22:02 jvartanian

Hi @jvartanian, I'm so sorry this hasn't been merged yet. I've been extremely busy with work and life. I haven't forgotten, I promise I'll get to it.

potmat avatar Mar 13 '24 00:03 potmat