pschroeder89 / homebridge-levoit-humidifiers

Levoit Humidifiers Plugin for Apple HomeKit via Homebridge
Apache License 2.0
71 stars 9 forks source link

"User is not logged in" #79

Closed jandreaucodes closed 3 weeks ago

jandreaucodes commented 1 month ago

Describe The Bug:

I've installed the plugin and configured my VeSync credentials, however the logs show

[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Discovering devices...
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] The user is not logged in!

No devices show up. To Reproduce: Add plugin to existing Homebridge. Set Credentials. View Logs

Expected behavior: Devices show up in Homekit and I'm logged in successfully. Logs:

[10/30/2024, 11:13:06 AM] Got SIGTERM, shutting down child bridge process...
[10/30/2024, 11:13:12 AM] [Levoit Humidifiers] Child bridge process ended
[10/30/2024, 11:13:12 AM] [Levoit Humidifiers] Process Ended. Code: 143, Signal: null
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Restarting Process...
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Launched child bridge with PID 91058
[10/30/2024, 11:13:19 AM] Registering platform 'homebridge-levoit-humidifiers.LevoitHumidifiers'
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Loaded homebridge-levoit-humidifiers v1.14.1 child bridge successfully
[10/30/2024, 11:13:19 AM] Loaded 0 cached accessories from cachedAccessories.0E595B5E3C38.
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Connecting to the servers...
[10/30/2024, 11:13:19 AM] Homebridge v1.8.5 (HAP v0.12.3) (Levoit Humidifiers) is running on port 38427.
[10/30/2024, 11:13:19 AM] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] Discovering devices...
[10/30/2024, 11:13:19 AM] [Levoit Humidifiers] The user is not logged in!

Plugin Config:

{
    "name": "Levoit Humidifiers",
    "email": "mike@mydomain.net",
    "password": "XXXXXX",
    "accessories": {
        "humidity_sensor": true,
        "mist": true,
        "warm_mist": true,
        "sleep_mode": true,
        "display": true,
        "night_light": true,
        "auto_pro": true
    },
    "options": {
        "showOffWhenDisconnected": false
    },
    "_bridge": {
        "username": "0E:59:5B:5E:3C:38",
        "port": 38427
    },
    "platform": "LevoitHumidifiers"
}

Environment:

jandreaucodes commented 3 weeks ago

I figured this out.

My password was wrong. The VeSync app limits you to 15 characters, but their UI doesn't say that. So I thought I had saved a long and secure password, but ultimately the password in 1Password was wrong. I reset it to a shorter password and am now working correctly!

pschroeder89 commented 2 weeks ago

This is good to know, thanks for responding back!