jfarmer08 / homebridge-wyze-smart-home

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

Initial startup error - #219

Closed Dirk123456789 closed 4 months ago

Dirk123456789 commented 4 months ago

Describe Your Problem: I've just installed & configured the Wyze plugin, but Homebridge logs give errors upon startup from the Wyze plugin, saying the credentials are invalid.

I've checked & double-checked email, password, and API key info (which I just created a little while ago).
I'm wondering if this has anything to do with 2FA on my Wyze account...?

Logs:

[2/13/2024, 10:16:20 AM] [HB Supervisor] Restarting Homebridge...
[2/13/2024, 10:16:20 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
[2/13/2024, 10:16:20 AM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 21590
[2/13/2024, 10:16:21 AM] Loaded config.json with 0 accessories and 2 platforms.
[2/13/2024, 10:16:21 AM] Loaded 0 cached accessories from cachedAccessories.
[2/13/2024, 10:16:21 AM] ---
[2/13/2024, 10:16:21 AM] Loaded plugin: homebridge-wyze-smart-home@0.5.43
[2/13/2024, 10:16:21 AM] Registering platform 'homebridge-wyze-smart-home.WyzeSmartHome'
[2/13/2024, 10:16:21 AM] ---
[2/13/2024, 10:16:21 AM] Loading 2 platforms...
[2/13/2024, 10:16:21 AM] [Wyze] Initializing WyzeSmartHome platform...
Setup Payload:
...
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
....       [deleted]                       
[2/13/2024, 10:16:21 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 6C02) is running on port 51801.
Failed to create listener for avahi-daemon server state. The system will not be notified about restarts of avahi-daemon and will therefore stay undiscoverable in those instances. Error message: Error: No such interface found
[2/13/2024, 10:16:21 AM] [Wyze] Error getting devices: Error: Invalid credentials, please check username, password, keyid or apikeyError: Potentially recoverable error during request

Plugin Config:

{
    "name": "Wyze",
    "username": "<deleted>",
    "password": "<deleted>",
    "keyId": "<deleted>",
    "apiKey": "<deleted>",
    "refreshInterval": 60000,
    "hms": false,
    "showAdvancedOptions": false,
    "apiLogEnabled": false,
    "logLevel": "none",
    "lowBatteryPercentage": 30,
    "excludeMacAddress": false,
    "excludedeviceType": false,
    "platform": "WyzeSmartHome"
}

Environment:

github-actions[bot] commented 4 months ago

Message that will be displayed on users' first issue

orienwu commented 4 months ago

Updated to 0.5.43 and also now seeing this issue. Cleared persist data.

jfarmer08 commented 4 months ago

ok we see the error. Working on a fix.

jfarmer08 commented 4 months ago

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

Dirk123456789 commented 4 months ago

Thanks so much - that was quick, and fixed the error! My Wyze devices now show up on the list as well. Now I just have to figure out how to get my cameras to show up as cameras, and show video. :)

carTloyal123 commented 4 months ago

@Dirk123456789 you will need another set of tools to accomplish that at this moment. Something like a combination of docker-wyze-bridge and scrypted should do the trick but this plugin is not made for video support.