pvvx / ATC_MiThermometer

Custom firmware for the Xiaomi Thermometers and Telink Flasher
https://github.com/pvvx/pvvx.github.io/tree/master/ATC_MiThermometer
Other
2.75k stars 196 forks source link

Update issue: no temperature offset setting available in Telink Flasher #501

Closed Zephael86 closed 2 months ago

Zephael86 commented 3 months ago

For Xiaomi Mijia pvvx firmware 3.7, 4.2, 4.3 I can set temperature offset in Telink Flasher. For 4.6 this option is missing.

pvvx commented 2 months ago

ver 4.7 - Changing sensor settings: Added slope factor, zero offset in 0.01 units.

image

All coefficients that are used for the sensor in the firmware are displayed. More details can be found in the documentation for the sensor.


ver 4.6

image

Zephael86 commented 2 months ago

I have to apologize. Indeed it was one device, that got updated to 4.7. I can see this section called 'Sensor Settings'. Now I have to understand :)

Shall I close, or you close it usually?

traeu commented 2 months ago

After updating to 4.7, all my LYWSD03MMC show the same sensor settings:

For SHTv3: Temperature slope factor: 175.00, Zero Offset: -45.00 Humidity slope factor: 100.00, Zero Offset: 0.00

For SHT4x: Temperature slope factor: 175.00, Zero Offset: -45.00 Humidity slope factor: 125.00, Zero Offset: -6.00

Does that mean the calibration values I set before the firmware update are lost when updating to 4.7 and the sensors are now working with default values?

pvvx commented 2 months ago

Does that mean the calibration values I set before the firmware update are lost when updating to 4.7 and the sensors are now working with default values?

Yes, new values are used.

traeu commented 2 months ago

Yes, new values are used.

Maybe you could add a little notice to the changelog so people know that calibrations made in the past are not active anymore after updating to v4.7?

pvvx commented 2 months ago

Maybe you could add a little notice to the changelog so people know that calibrations made in the past are not active anymore after updating to v4.7?

Firmware version history 4.7 | Changing sensor settings: Added slope factor, zero offset in 0.01 units.

traeu commented 2 months ago

I meant something like "Changing sensor settings: Added slope factor, zero offset in 0.01 units. (Updating to v4.7 removes old calibration settings and resets calibration data to default values)" It's not a big deal anyway, I was just a little surprised that I lost my custom calibrations. They weren't scientific anyway, I just put some time and love in it.

pvvx commented 2 months ago

If the main settings have not been changed, then the offsets in them are saved. When connecting in the log: Custom config HEX string: 55051000004004a9313180e1

_1_23 4__5 550510 00 00 04004a9313180e1

4th byte – offset for temperature of 0.1 C. 5th byte – offset for humidity of 0.1%.

PS: These bytes will be used in future versions.