jfarmer08 / homebridge-wyze-smart-home

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

TypeError: devices is not iterable #217

Closed adolton1 closed 4 months ago

adolton1 commented 4 months ago

Describe Your Problem:

*Edit: Sorry just saw someone posted this issue earlier today, forgot to check again before I posted. Feel free to delete.

After running into issue #208 and having to reset my password my Wyze cameras are not showing up in HomeKit and I am seeing this error in the logs. [Wyze] Error getting devices: TypeError: devices is not iterable

A little detail of events, I got an email from Wyze like many others that I had to reset my password, which I did. I realized yesterday, duh that's why my cameras weren't showing up correctly (showing off when they were on) in HomeKit. So I updated the Wyze plugin in Homebridge and updated the password. But it still wasn't working. That's when I noticed this error in the log. I've tried deleting and getting a new Wyze API key, as well as uninstalling and reinstalling/reconfiguring the Wyze plugin in Homebridge with no luck. Once I uninstalled the plugin I was able to add the Wyze bridge back into HomeKit but none of the cameras show up now.

Any other tips or help in getting this fixed is greatly appreciated!

Logs:

[2/10/2024, 9:58:00 AM] [Wyze] Initializing WyzeSmartHome platform... Setup Payload: X-HM://0024Y1EI2BVQG Enter this code with your HomeKit app on your iOS device to pair with Homebridge: ┌────────────┐
└────────────┘
[2/10/2024, 9:58:00 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge A7FC) is running on port 51722. [2/10/2024, 9:58:00 AM] [Wyze] Error getting devices: TypeError: devices is not iterable [2/10/2024, 9:59:00 AM] [Wyze] Error getting devices: TypeError: devices is not iterable

Plugin Config:

        "name": "Wyze",
        "username": "******",
        "password": "******",
        "keyId": "******",
        "apiKey": "******",
        "refreshInterval": 60000,
        "hms": false,
        "showAdvancedOptions": false,
        "apiLogEnabled": false,
        "logLevel": "none",
        "lowBatteryPercentage": 30,
        "excludeMacAddress": false,
        "excludedeviceType": false,
        "platform": "WyzeSmartHome"

Screenshots:

Environment:

github-actions[bot] commented 4 months ago

Message that will be displayed on users' first issue

bunnyc1986 commented 4 months ago

I'm getting the same error.

bunnyc1986 commented 4 months ago

dup: https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/216

jfarmer08 commented 4 months ago

Can you try version https://github.com/jfarmer08/homebridge-wyze-smart-home/releases/tag/v0.5.43

jfarmer08 commented 4 months ago

hopefully this helps https://github.com/jfarmer08/homebridge-wyze-smart-home/releases/tag/v0.5.44

carTloyal123 commented 4 months ago

Closing in favor of #216