nt0xa / homebridge-mi-humidifier

A Xiaomi Mi humidifier plugin for Homebridge
MIT License
64 stars 24 forks source link

This plugin generated a warning #84

Open Dane03 opened 3 years ago

Dane03 commented 3 years ago

@russtone unfortunately, new warnings incoming:

[10/03/2021, 14:20:59] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [10/03/2021, 14:20:59] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [10/03/2021, 14:20:59] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.

Node.js Version | v14.16.0 Npm Version v7.6.2 Homebridge v1.3.3 homebridge-mi-humidifier v2.3.1

Dane03 commented 3 years ago

Back with too high water levels...

https://github.com/russtone/homebridge-mi-humidifier/issues/80#issuecomment-792336224

[11/03/2021, 08:35:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:36:28] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:36:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:37:28] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:37:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:38:28] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:38:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:39:28] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:39:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:40:28] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info. [11/03/2021, 08:40:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic was supplied illegal value: number 104.16666666666667 exceeded maximum of 100. See https://git.io/JtMGR for more info.

Dane03 commented 3 years ago

Sorry to bother you @russtone but the messages are taking over ;)

Ugmaxie commented 3 years ago

@russtone I have almost the same errors too:

[3/17/2021, 7:12:52 AM] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[3/17/2021, 7:12:52 AM] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[3/17/2021, 7:12:52 AM] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.

[3/17/2021, 7:12:54 AM] [MiHumidifier] [10.0.1.84] Fail to get device properties. SocketError: Timeout
[3/17/2021, 7:13:24 AM] [MiHumidifier] [10.0.1.84] Fail to get device properties. SocketError: Timeout
[3/17/2021, 7:13:54 AM] [MiHumidifier] [10.0.1.84] Fail to get device properties. SocketError: Timeout
[3/17/2021, 7:14:24 AM] [MiHumidifier] [10.0.1.84] Fail to get device properties. SocketError: Timeout
[3/17/2021, 7:14:54 AM] [MiHumidifier] [10.0.1.84] Fail to get device properties. SocketError: Timeout

Homebridge : v1.3.4 Node.js : v14.15.0 NPM : v6.14.8 homebridge-mi-humidifier : v2.3.1

UPDATE: Mine is fixed I was obtaining an incorrect token by miio, so after getting token via iOS backup and decoding it - all started to work!

Dane03 commented 3 years ago

@Ugmaxie Better check the warnings again after filling the humidifier to Max.

The second block of messages refer to such an issue, but I doubt these would be related to the warnings...

Hambbuk commented 3 years ago

I have the same errors.

Starting to advertise 'Homebridge CAD8' using bonjour-hap backend!
[18/03/2021, 17:56:57] Homebridge v1.3.4 (Homebridge) is running on port 51826.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[18/03/2021, 17:56:58] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
Hambbuk commented 3 years ago

@Dane03

I just solved it.

I was putting in the wrong model name. lol

In my case, "model": "zhimi.humidifier.v1",->"model": "deerma.humidifier.mjjsq",

Check the model name !

Dane03 commented 3 years ago

Thx, I have 2 Ca1 and 4 Ca4 - just checked... all fine

nt0xa commented 3 years ago

Hey @Dane03, I've just published a new release, which I hope should fix this warnigns

DJay-X commented 3 years ago

Hey there.. With update to v2.4.0 I have the warning in the log again.

[11.4.2021, 00:03:15] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 2 exceeded maximum of 1. See https://git.io/JtMGR for more info.
[11.4.2021, 00:03:45] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Active': characteristic was supplied illegal value: number 2 exceeded maximum of 1. See https://git.io/JtMGR for more info.
{
            "devices": [
                {
                    "disabled": false,
                    "name": "Luftbefeuchter",
                    "address": "xxx.xxx.xxx.xx",
                    "token": "xxxxx",
                    "model": "zhimi.humidifier.ca4",
                    "updateInterval": 30,
                    "autoSwitchToHumidityMode": true,
                    "disableTargetHumidity": false,
                    "temperatureSensor": {
                        "enabled": true,
                        "name": "Luftbefeuchter Temperatur"
                    },
                    "humiditySensor": {
                        "enabled": true,
                        "name": "Luftbefeuchter Luftfeuchtigkeit"
                    },
                    "ledBulb": {
                        "enabled": true,
                        "name": "Luftbefeuchter LED"
                    },
                    "buzzerSwitch": {
                        "enabled": true,
                        "name": "Luftbefeuchter Buzzer"
                    },
                    "cleanModeSwitch": {
                        "enabled": false,
                        "name": "Luftbefeuter reinigen"
                    }
                }
            ],
            "platform": "MiHumidifier"
        },
Dane03 commented 3 years ago

The Good News @russtone , Water level disappeared, but now I get the same warning like @DJay-X

nt0xa commented 3 years ago

Should be fixed in 2.4.1

Dane03 commented 3 years ago

Looks good thx @russtone

vdebrist commented 3 years ago

Hi @russtone . Warning messages again. "model": "deerma.humidifier.mjjsq" . But all works perfectly.

Node.js Version | v14.16.1 Npm Version v7.11.1 Homebridge v1.3.4 homebridge-mi-humidifier v2.4.2

[21/05/2021, 22:43:47] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [21/05/2021, 22:43:47] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Water Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info. [21/05/2021, 22:43:47] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [21/05/2021, 22:43:47] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.