pschroeder89 / homebridge-levoit-humidifiers

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

characteristic value 0 is not contained in valid values array #75

Closed mdgreenwald closed 4 months ago

mdgreenwald commented 6 months ago

Describe The Bug: Log output seems to indicate unexpected or missing values.

To Reproduce: Add Classic300S humidifiers, disable all accessories in config.

Expected behavior: I wouldn't expect any of the below output in logs.

Logs:

homebridge_1  | [2/8/2024, 1:15:04 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge ABCD) is running on port 12345.
homebridge_1  | [2/8/2024, 1:15:05 PM] [Levoit Humidifiers] Launched child bridge with PID 1234
homebridge_1  | [2/8/2024, 1:15:05 PM] Registering platform 'homebridge-levoit-humidifiers.LevoitHumidifiers'
homebridge_1  | [2/8/2024, 1:15:05 PM] [Levoit Humidifiers] Loaded homebridge-levoit-humidifiers v1.12.4 child bridge successfully
homebridge_1  | [2/8/2024, 1:15:05 PM] [Levoit Humidifiers] Connecting to the servers...
homebridge_1  | [2/8/2024, 1:15:05 PM] Homebridge v1.7.0 (HAP v0.11.1) (Levoit Humidifiers) is running on port 54321.
homebridge_1  | [2/8/2024, 1:15:05 PM] [Levoit Humidifiers] Discovering devices...
homebridge_1  | [2/8/2024, 1:15:06 PM] [Levoit Humidifiers] Adding new accessory: Bedroom Humidifier
homebridge_1  | [Bedroom Humidifier@Humidifier@Target Humidifier-Dehumidifier State] characteristic value 0 is not contained in valid values array
homebridge_1  | [Bedroom Humidifier@Humidifier@Current Humidifier-Dehumidifier State] characteristic value 0 is not contained in valid values array
homebridge_1  | [2/8/2024, 1:15:06 PM] [Levoit Humidifiers] Adding new accessory: Nursery Humidifier
homebridge_1  | [Nursery Humidifier@Humidifier@Target Humidifier-Dehumidifier State] characteristic value 0 is not contained in valid values array
homebridge_1  | [Nursery Humidifier@Humidifier@Current Humidifier-Dehumidifier State] characteristic value 0 is not contained in valid values array

Plugin Config:

{
    "name": "Levoit Humidifiers",
    "email": "_",
    "password": "_",
    "accessories": {
        "cool_mist": false,
        "warm_mist": false,
        "sleep_mode": false,
        "display": false,
        "night_light": false
    },
    "options": {
        "showOffWhenDisconnected": false
    },
    "platform": "LevoitHumidifiers"
}

Environment:

pschroeder89 commented 6 months ago

Can you try the 1.13 beta version?

The fix I have there might resolve this too

pschroeder89 commented 4 months ago

Is this still occurring @mdgreenwald ? I'm unable to reproduce it

mdgreenwald commented 4 months ago

I actually just put my humidifiers away for the rest of the year so we can just close this issue. I'll try the newer plugin when I set them back up in December or Jan.