shauntarves / wyze-sdk

A modern Python client for controlling Wyze devices.
The Unlicense
298 stars 49 forks source link

Can't log in #141

Closed Sfrjoshpro closed 11 months ago

Sfrjoshpro commented 12 months ago

Code been same for months saw them talking about changing there auth. Did api get locked out?!

Sfrjoshpro commented 12 months ago

None type object not subscribable. If response ['action_token']

Sfrjoshpro commented 12 months ago

https://support.wyze.com/hc/en-us/articles/16129834216731-Creating-an-API-Key

JohnMTorgerson commented 12 months ago

I noticed there's an API key hard-coded in auth_service.py. I wonder if it didn't just expire today. Presumably we should all be generating our own API keys and the SDK should ask us for it, rather than everyone using Shaun's?

mrlt8 commented 12 months ago

I submitted a PR for the new auth API endpoint a couple of weeks ago #140.

JohnMTorgerson commented 12 months ago

I submitted a PR for the new auth API endpoint a couple of weeks ago #140.

Oh sweet, thanks! At least I can clone that and use it locally until it's accepted.

Edit: it works like a charm!

Sfrjoshpro commented 12 months ago

Noted thanks I'll give thst a shot

samrossporta commented 12 months ago

Any timeline on when #140 will be merged with master?

shauntarves commented 12 months ago

hey guys...sorry for delay here - I'm not able to keep up with this repo much these days.

  1. That API key that's hard-coded isn't mine at all - it's something I dug out of the app and was needed for calling the auth service to login.
  2. I will test out the patch today and get it merged
Sfrjoshpro commented 12 months ago

Look forward to hearing how it goes. And thank god for mrlt8 for the patch. Will say since it’s a big part of my set up I need to learn more about how it work so if it breaks. Or what not

On Fri, Jul 21, 2023 at 11:47 Shaun Tarves @.***> wrote:

hey guys...sorry for delay here - I'm not able to keep up with this repo much these days.

  1. That API key that's hard-coded isn't mine at all - it's something I dug out of the app and was needed for calling the auth service to login.
  2. I will test out the patch today and get it merged

— Reply to this email directly, view it on GitHub https://github.com/shauntarves/wyze-sdk/issues/141#issuecomment-1645787147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADK57OKVBWQJVCTWW34EKXLXRKP7NANCNFSM6AAAAAA2R6VQIA . You are receiving this because you authored the thread.Message ID: @.***>

JohnMTorgerson commented 12 months ago
  1. That API key that's hard-coded isn't mine at all - it's something I dug out of the app and was needed for calling the auth service to login.

Oh interesting. Anyway, thanks for getting that merged. And thanks to mrlt8 for the patch! My cat thanks you both, since the A/C doesn't come on if the SDK goes down, lol.

Sfrjoshpro commented 12 months ago

Yea my garden humidifier and dehumidifier and irrigation work on this. 😅 did it get merged

H8Houston commented 12 months ago

Having the same issue and looking forward to the merge. I am not a very proficient python coder. Once it is merged, how do I get the merge implemented into the wyze-sdk on my linux host? Can i just run a 'pip install wyze-sdk' command again or do I need to do something fancier than that?

Sfrjoshpro commented 12 months ago

Once it hits the masters you just gotta update your STK and then you should be good

shauntarves commented 11 months ago

Hey folks...just published v2.0.0 thanks to @mrlt8's contribution. You will need to generate the API key on Wyze's site and feed it into the client constructor in order to login and create the new access token.

I'm honored that so many folks rely on this to control their homes - that's a lot of pressure 🤣

romedtino commented 11 months ago

That's what happens when you provide an amazing service and filling a hole Wyze has yet to fill :P. Definitely appreciate this!

H8Houston commented 11 months ago

@shauntarves & @mrlt8: Y'all rock! Thanks for the update. Everything back to normal. Happy me, happy mom, happy life! Wyze bulbs once again working and responding to weather conditions outside. Christmas in July! Thank you.