ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

Custom firmware reports incorrect humidity

Open ervu opened this issue 3 years ago • 10 comments

The MI LYWSD03MMC with the REL 38 firmware the display shows the wrong humidity after minutes after power-on. On average the value on the display is 5% up to 10% lower that the actual value.

This can be simulated: -remove the battery -replace the battery -correct humidity is on the display -wait 6 cycles between humidity and battery display rotation -after cycle 6 the wrong humidity is displayed -also the wrong value is passed to bluetooth and home assistant

tested with multiple sensors.

ervu avatar Aug 01 '21 15:08 ervu

Hey,

the 5% is the "normal" offset from this Firmware,

the custom firmware does calculations on the sensor data which is not done by the custom firmware. it was the offset setting added to be able to make a custom offset if it is disturbing.

the custom firmware uses the sensor values directly from the sensor

atc1441 avatar Aug 01 '21 15:08 atc1441

If i understand correctly, the custom firmware always displays the wrong value and needs always to be adjusted manually? Is it possible to add code to the firmware to add an adjustment of 10% by default?

ervu avatar Aug 01 '21 17:08 ervu

Correct.

You can set the offset via the flashing website

atc1441 avatar Aug 01 '21 17:08 atc1441

Is it possible to add code to the firmware to add an adjustment of 10% by default?

ervu avatar Aug 01 '21 17:08 ervu

Sure you could add such a function quite simple in the code :)

atc1441 avatar Aug 01 '21 17:08 atc1441

Thanks for the great code an the help !!

ervu avatar Aug 01 '21 17:08 ervu

Sure you could add such a function quite simple in the code :)

Is this issued on the list for the next firmware release?

ervu avatar Aug 01 '21 17:08 ervu

I am not actively working on the firmware right now.

Also the offset is not a default needed value so i will leave it like it is, everyone can set its own offset via the flasher if needed

atc1441 avatar Aug 01 '21 17:08 atc1441

i have tuned the MI's with the offset. Works great :) Keep up the good work.....

ervu avatar Aug 01 '21 20:08 ervu

I'm a bit confused by this one. If original firmware adds 5% to sensor's reading, what is the real humidity value? What sensor reports, or sensor + 5%? Which one is the closest to the real world value?

ProTofik avatar Oct 10 '21 23:10 ProTofik