-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Integration broken due to authentication failures #493
Comments
Yeah this is happening to me too. Bummer. |
Can confirm. Same error. I'm new to Home Assistant but a 25 year IT admin and this seems to be an issue. I have 2 factor and it errors prior to prompting. HA Version: Home Assistant 2023.7.2 Frontend 20230705.1 - latest |
Same :( |
Also looking for a solution to this. |
It appears they've changed their API endpoint, I don't know python that well at all so I wouldn't know how to update this in a pull request, but here is the information that I've found.... |
Hi, I had a quick look through ha-wyzeapi, but it seems like all the auth stuff is done on wyzeapy repo, so I submitted a PR there for the new API endpoint there: SecKatie/wyzeapy#70 . |
Thanks for working on a fix mrlt8! In an interesting twist, it seems the old auth method is back online.. at least for now, as my lock integrations have started working again |
So we're not reinventing the wheel. The Simple Wyze vac Integration in HACS has already muddled through the Integration issues. Maybe that could help this one. |
I'm still seeing a 403 forbidden error when accessing the old auth endpoint: @codypet it's actually really simple and they only changed the authentication endpoint. |
Also getting 403 on the old endpoint, bad timing for having just replaced all my old cams with new ones 😓 Awesome to see the pr, mrl58, thank you 🙏 |
To clarify, I didn’t try hitting the endpoint directly as you have. Instead, I just happened to notice when restoring a backup onto a new device that ha-wyzeapi was able to initialize, authenticate, and communicate with my devices again, even though the machine that the backup originated from could not. I’ll have to restart the old machine to see if that self resolved as well. It’s really strange 🤔 either way even if it is currently working I suspect it will soon break as Wyze finalizes their turndown of the old API |
Your refresh token was probably still good. They only made changes to the auth endpoint for logins, so you should theoretically be able to keep refreshing an existing token without any modification. |
That makes sense, since the backup was from before the time that the integration broke on the old box. I just reattempted on that device and it is indeed still broken. However the integration remains functional on the new device restored from backup with my existing entry. On both devices as expected authentication for a new entry fails. So I seem to have gotten lucky with timing and my refresh token in general. |
Any update on this? |
Once this PR gets through, I think we may also need to update the ha-wyzeapi files to support entering in of the key_id and api_key upon configuration of the integration , correct? I am newer to all of this but would love to help anywhere I can. |
I resolved this and have a working integration with the ability to provide the Username, Password, KeyID & ApiKey. I am going to make a PR for the ha-wyzeapi and provide the updated code for review. This does rely on the wyzeapy changes being pushed through. I am currently running them locally by referencing them in my code. |
Looking forward to downloading new version of ha-wyzeapi |
This is typically considered rude to ask unpaid developers for a time frame for something to get fixed. They volunteer their time for this and it's much appreciated. They'll get it fixed when time permits. Please don't be demanding. |
@T3chGuy77 |
Hi @kinpain -- Looks like both PR for the update to wyzeapy and wyzeapi have been pushed through. You should be able to reinstall and have the updated auth methods. |
Tested with the new auth, working beautifully, thanks everyone! |
Tested and working. Thanks |
Can also confirm the fix is working! Thanks so much developers for your effort and time! |
Fantastic! thanks a lot for all. |
Describe the bug
Wyze entities are no longer available. Seems the Wyze API has fundamentally changed, and the integration is now broken. I'm not able to add a new integration with my existing credentials or with the new API key that Wyze has implemented for auth.
To Reproduce
Steps to reproduce the behavior:
For new integrations:
For existing integrations:
Expected behavior
I expect my existing integration's devices to have functional control entities, and I expect to be able to use my Wyze credentials to add a new integration entry.
System configuration
System: Bare Metal
HA Version: 2023.7.2 (on HAOS 10.3)
WyzeApi Version: HA-WyzeAPI 0.1.19
home-assistant.log
The text was updated successfully, but these errors were encountered: