hillaliy / homebridge-midea-air

Homebridge plugin for Midea units
MIT License
72 stars 23 forks source link

Unreachable Dehumidifier spamming the log with errors #19

Closed CyberMrProper closed 3 years ago

CyberMrProper commented 3 years ago

Hi @hillaliy,

When I start homebridge and the device is offline (Unreachable/Unplugged), the plugin start spamming the log with errors. Not sure if the solution is to initialize those characteristics with default values, or maybe you can come up with a nicer solution.

Thanks

[8/11/2021, 3:01:11 PM] [homebridge-midea-air] Device: Dehumidifier (1855...) Unreachable
[8/11/2021, 3:01:16 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:16 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Relative Humidity Dehumidifier Threshold': characteristic was supplied illegal value: number 0 exceeded minimum of 35. See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:21 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:21 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Relative Humidity Dehumidifier Threshold': characteristic was supplied illegal value: number 0 exceeded minimum of 35. See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:26 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:26 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Relative Humidity Dehumidifier Threshold': characteristic was supplied illegal value: number 0 exceeded minimum of 35. See https://git.io/JtMGR for more info.
[8/11/2021, 3:01:31 PM] [homebridge-midea-air] This plugin generated a warning from the characteristic 'Active': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
.....
hillaliy commented 3 years ago

send me full log from Homebridge i'll try something

CyberMrProper commented 3 years ago

Here you have it homebridge.log.txt Thanks

hillaliy commented 3 years ago

try version 1.3.5

CyberMrProper commented 3 years ago

I think it's better, but I'm still seeing several "This plugin generated a warning from the characteristic" homebridge_new.log.txt

hillaliy commented 3 years ago

it's loop until it's stop before that it's loop forever