Martvvliet / homebridge-mi-flora-filtered

MIT License
8 stars 4 forks source link

Error at Homebridge 1.3 #17

Open GitGabKat opened 3 years ago

GitGabKat commented 3 years ago

Running the plug-in with Homebridge 1.3 causes a warning which could relate to a disfunction image

Sungamm commented 3 years ago

Hi, same issue here.

[17/03/2021, 19:54:48] [Bogenhanf] Firmware: 3.2.1, Battery level: 99 [17/03/2021, 19:59:48] [Bogenhanf] Lux: 0, Temperature: 21.5, Moisture: 40, Fertility: 249 [17/03/2021, 19:59:48] [homebridge-mi-flora-filtered] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://git.io/JtMGR for more info.

Plug-in works perfect but is there a chance to fix it, please?

Nastras commented 3 years ago

I have tried to fix it myself. The error hint no longer occurs. Here is the customized index.js for further use.

index.txt

Sungamm commented 3 years ago

Hi, is there a chance to have the fix in the plug-in itself and for all values?

The fix works perfect for the LUX and TEMP on my side. But with the FERTILITY it still occurs.

[22/05/2021, 13:29:45] [homebridge-mi-flora-filtered] This plugin generated a warning from the characteristic 'Soil Fertility': characteristic was supplied illegal value: number 1366 exceeded maximum of 255. See https://git.io/JtMGR for more info.

Due to this it will be great to have a general fix for this warning at all.

best regards