honkmaster / homebridge-mi-flower-care

Homebridge plugin for the Xiaomi Mi Flora / Flower Care devices.
42 stars 16 forks source link

Homebridge 1.3.0 / characteristic was supplied illegal value #38

Open bondskin opened 3 years ago

bondskin commented 3 years ago

With 1.3.0 of Homebridge, I see the following error message

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.

nielsth commented 3 years ago

The issue only occurs when Homebridge has started but there is no available from the sensor yet. Usually, the first scan is done the specified interval (in seconds) after the plug-in has loaded. Sometimes more, in case the sensor is on the edge of the bluetooth range and isn't picked up on every scan.

A possible solution might be to load the sensor in HomeKit with a No Response state and not write zero values to it, until the first successful scan has taken place. Would that work?

hs75 commented 3 years ago

same issue here, despite sensors within 2-3m range

Hansjshx commented 3 years ago

I get this error "[homebridge-mi-flora-filtered] This plugin generated a warning from the characteristic 'Soil Fertility': characteristic was supplied illegal value: number 2069 exceeded maximum of 255." from Fertility. FW 3.3.1, latest Homebridge, latest Plugin.

honkmaster commented 2 years ago

Working on a fix.

ApoFenomeno commented 4 months ago

Hello @honkmaster, is there any update on the fix, yet?

On Homebridge v1.8.1 and homebridge-mi-flower-care@1.3.1-beta4 there is still no sensor data provided in the Apple Home app or the Eve app.

The following data is exposed:

The device is next to the homebridge.