misenhower / homebridge-wyze-connected-home

Wyze Connected Home plugin for Homebridge
MIT License
70 stars 52 forks source link

Unable to Control Wyze Plug #7

Closed av8ndad closed 4 years ago

av8ndad commented 4 years ago

I am unable to control my Wyze plug using Homebridge and your code. The devices show up in my Home app, but I am unable to control them. At first, they show as available for use in the Home app, but when I try to toggle them on or off, they are not controllable and then the Home app reports them as No Response. I have tried with and without 2FA, and each time I have had the same issue.

Here is a sample log snippet:

[5/28/2020, 15:28:15] [Wyze] Error getting devices: Error: Request failed with status code 400 [5/28/2020, 15:28:26] [Wyze] Error, refreshing access token and trying again [5/28/2020, 15:28:26] [Wyze] Error, logging in and trying again [5/28/2020, 15:28:26] [Wyze] Request failed: Error: Request failed with status code 400 [5/28/2020, 15:28:26] [Wyze] Response (Bad Request): {"errorCode":1000,"description":"Too many failed attempts. Please try again later.","requestId":"---omitted---"}

Can you please let me know what I am doing wrong?

Thanks!!

av8ndad commented 4 years ago

I don't know why, but it suddenly started working, so I will close this case. Thanks for the plugin!

misenhower commented 4 years ago

Glad to hear it worked out! My guess is their server was blocking you for some reason and then started rejecting all the requests from the plugin. I should probably implement some kind of back off functionality to prevent the plugin from hammering their servers when something goes wrong.