jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
93 stars 14 forks source link

Updated Homebridge UI to the latest version and now all of my Wyze devices are offline. #184

Closed vascott1 closed 8 months ago

vascott1 commented 8 months ago

Describe Your Problem: Updated Homebridge UI to the latest version (homebridge-config-ui-x v4.51.0) and now all of my Wyze devices are offline. Have confirmed that my Key Id, Api Key are correct as well as my username and password. I have rebooted and power cycled my Pi. Logs:

Show the Homebridge logs here, remove any sensitive information.

[23/10/2023, 19:42:12] [wyze-smart-home] Request failed: AxiosError: Request failed with status code 400 [23/10/2023, 19:42:12] [wyze-smart-home] Response PerformRequest (Bad Request): {"description":"Invalid credentials, please check username, password, keyid or apikey","requestId":"xxxxxx","errorCode":1000}

Plugin Config:

    {
        "name": "wyze-smart-home",
        "username": "xxxxx@gmail.com",
        "password": "xxxx",
        "keyId": "xxxx",
        "apiKey": "xxxx",
        "refreshInterval": 60000,
        "hms": false,
        "showAdvancedOptions": true,
        "apiLogEnabled": false,
        "logLevel": "none",
        "excludeMacAddress": true,
        "filterByMacAddressList": [
            "7C78B2705140"
        ],
        "excludedeviceType": true,
        "filterDeviceTypeList": [
            "Camera"
        ],
        "platform": "WyzeSmartHome"
    },

Screenshots:

Environment:

jfarmer08 commented 8 months ago

I mean the error says something different. 🤷‍♂️🤷‍♂️

vascott1 commented 8 months ago

Sorry to be confusing. Not intentional of course.

The devices are all offline because the plugin cannot log into my account. The only change made was upgrading homebridge UI and a restart. The error below just repeats over and over again. I confirmed that all the information in the config matches What I see on the API Key page from Wyze and does not expire until 3 July 2024.

I considered backing out to v0.5.36 and see if that resolved the issue but thought there might be some interest if I had found an issue in the latest build of 5.37

If there is more information I can supply, let me know. And if there is any action you would like me to try I can do that :)

[23/10/2023, 20:11:32] [wyze-smart-home] Error getting devices: AxiosError: Request failed with status code 400 [23/10/2023, 20:12:32] [wyze-smart-home] Request failed: AxiosError: Request failed with status code 400 [23/10/2023, 20:12:32] [wyze-smart-home] Response PerformRequest (Bad Request): {"description":"Invalid credentials, please check username, password, keyid or apikey","requestId":"fce9430d-590a-4f57-a921-ae7954533cca","errorCode":1000} [23/10/2023, 20:12:32] [wyze-smart-home] Error getting devices: AxiosError: Request failed with status code 400

On Oct 23, 2023, at 10:19 PM, Farmer @.***> wrote:

I mean the error says something different. 🤷‍♂️🤷‍♂️

— Reply to this email directly, view it on GitHub https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/184#issuecomment-1776394064, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLAX23CB3YRIHQUPDJ6HYTYA4QSPAVCNFSM6AAAAAA6M3S7SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWGM4TIMBWGQ. You are receiving this because you authored the thread.

jfarmer08 commented 8 months ago

Have you checked this ticket out https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/149?

vascott1 commented 8 months ago

That worked! I regenerated the key and all is well now. Easy fix.

Thanks for the guidance.

On Oct 23, 2023, at 11:01 PM, Farmer @.***> wrote:

Have you checked this ticket out #149 https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/149?

— Reply to this email directly, view it on GitHub https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/184#issuecomment-1776423740, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLAX2ZWX4SPSOT6TRK3QIDYA4VRDAVCNFSM6AAAAAA6M3S7SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWGQZDGNZUGA. You are receiving this because you authored the thread.