flochtililoch / homebridge-pivot-power-genius

 Homebridge plugin for the Wink Pivot Power Genius (former Quirky).
4 stars 2 forks source link

Invalid Grant Type Error #4

Closed ronnycarr closed 6 months ago

ronnycarr commented 7 years ago

Hi there, I got access to the Wink API and installed the plugin but when I try to start homebridge i get an authorization error invalid_grant: This client is not permitted to use the password grant type. Any advice is much appreciated!

flochtililoch commented 7 years ago

Seeing this a bit late, sorry about that - did you configure the plugin with valid client_id and client_secret?

smartymanav commented 7 years ago

I am also seeing the same error and yes I followed the instructions and added both username/password and clientid/secret to the json config

flochtililoch commented 7 years ago

This probably has to do with which API version your client has access to. The underlying API client this plugin uses is https://github.com/winfinit/wink-js, which leverage API v1. My guess is your client is for API v2

smartymanav commented 7 years ago

Hmm, so how do I work around this? Thanks!

On Wed, Aug 9, 2017 at 4:31 PM, Florent Bonomo notifications@github.com wrote:

This probably has to do with which API version your client has access to. The underlying API client this plugin uses is https://github.com/winfinit/ wink-js, which leverage API v1. My guess is your client is for API v2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flochtililoch/homebridge-pivot-power-genius/issues/4#issuecomment-321409283, or mute the thread https://github.com/notifications/unsubscribe-auth/Ada1hbVLncQuVDaDOxaXxKtP8hiQp-RGks5sWkFRgaJpZM4N6o-U .

flochtililoch commented 7 years ago

You should email Wink (same contact you used to get your client ID/secret created) and ask them to switch your client to API v1

smartymanav commented 7 years ago

they have actually "upgraded" the process of creating an app - its all done online now, I didn't have to email any one..

On Wed, Aug 9, 2017 at 6:23 PM, Florent Bonomo notifications@github.com wrote:

You should email Wink (same contact you used to get your client ID/secret created) and ask them to switch your client to API v1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flochtililoch/homebridge-pivot-power-genius/issues/4#issuecomment-321424271, or mute the thread https://github.com/notifications/unsubscribe-auth/Ada1hWqP_u5nUIEhH1BDrarDtd20ZgUMks5sWlt4gaJpZM4N6o-U .

sibartlett commented 6 years ago

@flochtililoch maybe you should try adding support for API v2?

I've implemented it in homebridge-wink3, so you can use that as a reference.

flochtililoch commented 6 years ago

Thanks - I don't have time to maintain this plugin anymore, but I will gladly review pull requests for such improvements. @sibartlett does you plugin supports the pivot power genius? If so I may as well direct users to use your plugin instead

sibartlett commented 6 years ago

No my plugin doesn't support pivot power genius - in fact, I've been directing users to your plugin!

LordZork commented 4 years ago

Is this plugin still working for anyone? If so, please see https://github.com/flochtililoch/homebridge-pivot-power-genius/issues/8 and let me know, thanks!