Skip to content
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

Wyze API Errors #248

Closed
joshelgin opened this issue May 4, 2024 · 17 comments
Closed

Wyze API Errors #248

joshelgin opened this issue May 4, 2024 · 17 comments
Labels
bug Something isn't working question Further information is requested

Comments

@joshelgin
Copy link

Describe The Bug:
The plugin no longer logs into the Wyze API properly.

I also deleted my existing API key and created a new one, issue persists.

To Reproduce:
Attempt to configure the plugin.

Expected behavior:
Plugin should log into the Wyze API and connect my devices.

Logs:
'''
[04/05/2024, 15:41:35] [Wyze] Wyze API Error (2001): 'access token is error'
[04/05/2024, 15:41:35] [Wyze] Wyze API Error (2002): 'RefreshTokenError'
[04/05/2024, 15:41:35] [Wyze] Error getting devices: Error: Refresh Token could not be used to get a new access token. Error: Wyze API Error (2002) - RefreshTokenError'''

Plugin Config:

{
"name": "Wyze",
"username": "[email]",
"password": "[password]",
"keyId": "61e9a810-716b-4ba2-9b04-269cc82a59b5",
"apiKey": "[apiKey]",
"refreshInterval": 60000,
"hms": false,
"showAdvancedOptions": false,
"apiLogEnabled": false,
"pluginLoggingEnabled": false,
"lowBatteryPercentage": 30,
"excludeMacAddress": false,
"excludedeviceType": false,
"platform": "WyzeSmartHome"
}

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version: v1.81
  • Node.js Version: v18.16.0
  • NPM Version:
  • Operating System: Raspbian
@joshelgin joshelgin added bug Something isn't working question Further information is requested labels May 4, 2024
Copy link

github-actions bot commented May 4, 2024

Message that will be displayed on users' first issue

@joshelgin
Copy link
Author

Maybe has to do with #245?

@blachole
Copy link

blachole commented May 5, 2024

I can confirm I am having the same problems and also generated a new API key with same error persisting.

@mpl241
Copy link

mpl241 commented May 17, 2024

I am also having the same problem with the plugin, even after updating my API key. The problem started sometime yesterday (2024-05-16).

[5/17/2024, 8:36:47 AM] [Wyze] Wyze API Error (2001): 'access token is error'
[5/17/2024, 8:36:48 AM] [Wyze] Wyze API Error (2002): 'RefreshTokenError'
[5/17/2024, 8:36:48 AM] [Wyze] Error getting devices: Error: Refresh Token could not be used to get a new access token. Error: Wyze API Error (2002) - RefreshTokenError

@mylylyl
Copy link

mylylyl commented May 20, 2024

same here. maybe cause of 2FA?

@blachole
Copy link

Maybe @xcz011 can help answer this?

@Jjcord
Copy link

Jjcord commented May 21, 2024

Wyze is pushing 2FA on all of us May 31. Can anyone confirm status with 2FA enabled?

@HughesAndrewC
Copy link

I’ve been using 2FA with Microsoft Authenticator for months without issue.

@anderfrank
Copy link

I've had 2FA enabled on my Wyze account for a long time and had no issues until this recent Wyze API change.

@Ogerbrow
Copy link

Same here, I have had 2FA in place for a long time. Any progress here?

@anderfrank
Copy link

Same here, I have had 2FA in place for a long time. Any progress here?

I know the Wyze integration in HACS for Home Assistant is working fine so I have switched to that for the time being.

@jfarmer08
Copy link
Owner

jfarmer08 commented Jun 4, 2024 via email

@anderfrank
Copy link

Can you confirm the new API (#245) is implemented with this plugin?

I have been using an API key with this plugin for many months and it just stopped working recently with Wyze disabling the old API.

@name99-org
Copy link

I'm seeing the same behavior. Everything just stopped working. Communication between HomeKit and Wyze plugin is fine (tap a light on in Home.app, the light is displayed in the UI as going on with no error, and on the Homebridge web page the light is also displayed as on - but in reality it's unchanged, still off.

Wyze logs show NO errors...
Seems like the plugin is sending requests off into the ether, getting no response (or a canned OK response) but Wyze central is not honoring the requests, and plugin is not even aware that requests are not being honored.

My guess is the #245 issue is driving all this.

BTW, before the 2FA deadline I asked Wyze tech support if this would impact Homebridge and was told no. So, yeah, another triumph for tech support...

@yodaluca23
Copy link

This may be redundant information, as several have already answered, but I thought I might as well.

I have been using 2FA since I made my Wyze account, but I am getting these errors too, I tried a new API key/ID, and the problem persists, as others have noted this is likely to do with Wyze API changes, I hope this can be resolved, I will happily provide any logs, or other information if it may help resolve this issue.

@NateBlanchard
Copy link

Sorry to pile on here, but I'm having the same issue. I've been using an API key and already had 2FA enabled before the switch, but around that same time the plugin completely stopped working. I'm getting the same API errors others have mentioned, but haven't had any problems with Scrypted. I tried regenerating the key, but no difference.

Has anyone else had any luck in troubleshooting? I'm happy to wait patiently and appreciate the work I'm sure it'll take to fix, but I'm hoping I'm just doing something wrong.

@joshelgin
Copy link
Author

I can confirm that the suggestion "delete your refresh token from the persist directory" solved the issue.

This addon does not use 2FA anymore. It was remove a few revision back. Can you confirm that your using and api key. Also when you’re changing over you might have to delete your refresh token from the persist directory. Thanks Allen :)

On Thu, May 30, 2024 at 11:54 AM anderfrank @.> wrote: Same here, I have had 2FA in place for a long time. Any progress here? I know the Wyze integration in HACS for Home Assistant is working fine so I have switched to that for the time being. — Reply to this email directly, view it on GitHub <#248 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKHFB5QGQMEON2ZJTQGBXLZE5KTXAVCNFSM6AAAAABHHFVNIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQGI2TCNRUG4 . You are receiving this because you are subscribed to this thread.Message ID: @. com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests