RaresAil / homebridge-levoit-air-purifier

A Homebridge platform plugin made for Levoit Air Purifiers which supports the following models: Core 200S/300S/400S/400S Pro
https://www.npmjs.com/package/homebridge-levoit-air-purifier
Apache License 2.0
67 stars 11 forks source link

Warning from characteristic "active" #99

Open HackyPaddy opened 6 months ago

HackyPaddy commented 6 months ago

Describe The Bug

The plugin works, but the log is flooded with the following error:

[2.5.2024, 07:34:28] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 07:48:57] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 07:52:22] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 08:51:56] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 09:01:32] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 09:14:41] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

Expected behavior

A log without errors :)

Logs

[2.5.2024, 07:34:28] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 07:48:57] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 07:52:22] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 08:51:56] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 09:01:32] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [2.5.2024, 09:14:41] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

Plugin Config

{ "name": "Levoit Air Luftreiniger", "email": "xxx", "password": "xxx", "platform": "LevoitAirPurifiers" }

Plugin Version

v3.0.1

Homebridge Version

v1.8.1

Node.js Version

v18.19.0

NPM Version

n/a

Operating System

Raspberry

BastianZim commented 6 months ago

Getting the same error with a Core200S

[05/05/2024, 12:14:23] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[05/05/2024, 12:14:36] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[05/05/2024, 12:16:40] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[05/05/2024, 12:16:49] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
ItsHaysus commented 6 months ago

Same issue with 200S

dadsalleb commented 6 months ago

same here. Even though I'm using this plugin as a child bridge, the same error shows up.

jgreenb2 commented 5 months ago

Ditto on my core600s running as a child bridge. There are quite a few of these messages polluting the logs which makes debugging other issues a bit harder. Doesn't seem to affect functionality though.

mokolabs commented 5 months ago

I'm also seeing this on the core600s.

mcclia40 commented 4 months ago

Same for me, child bridge and all.

HackyPaddy commented 4 months ago

When will the error be fixed?

bchertel commented 3 months ago

core 300s is producing the same log messages

Niclassslua commented 1 month ago

Same! Core 200s is also producing this log message:

[10/24/2024, 6:56:04 PM] [homebridge-levoit-air-purifier] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info. [10/24/2024, 6:56:04 PM] [homebridge-levoit-air-purifier] Error: at On.Characteristic.characteristicWarning (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3016:105) at On.Characteristic.validateUserInput (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2892:12) at On. (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2410:24) at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27) at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57) at fulfilled (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)

HackyPaddy commented 3 weeks ago

Reminder: When will the error be fixed?