Closed octal-ip closed 1 year ago
In _jk_bmsble/sensor.py, accuracy_decimals is set to 0 for all temperature sensors (see lines 613, 620, 627).
However the true accuracy can be 1 decimal place, as defined in _jk_bms_ble/jk_bmsble.cpp (see lines 581, 584 and 592).
I recommend altering _CONF_TEMPERATURE_SENSOR1, _CONF_TEMPERATURE_SENSOR2 and _CONF_POWER_TUBETEMPERATURE to use accuracy_decimals=1.
Good catch! I will prepare a fix!
Thank you, is there any way I can donate as a token of appreciation for your work?
There is a buy me a coffee button on the top right corner of the README. Thanks in advance!
In _jk_bmsble/sensor.py, accuracy_decimals is set to 0 for all temperature sensors (see lines 613, 620, 627).
However the true accuracy can be 1 decimal place, as defined in _jk_bms_ble/jk_bmsble.cpp (see lines 581, 584 and 592).
I recommend altering _CONF_TEMPERATURE_SENSOR1, _CONF_TEMPERATURE_SENSOR2 and _CONF_POWER_TUBETEMPERATURE to use accuracy_decimals=1.