Converting power calibration from tasmota to ESPhome - HLW8012

Hi, I have bought localbytes plugs that come with tasmota, but since I do not use tasmota I flashed them to esphome, the sockets came calibrated (i guess) as they have values like these

# 02:27:42.233 RSL: RESULT = {"CurrentSetCal":3466}
# 02:27:49.178 RSL: RESULT = {"VoltageSetCal":1528}
# 02:27:53.587 RSL: RESULT = {"PowerSetCal":9842}

different for each socket

How do I convert those calibration values to be same for HLW8012 Power Sensor — ESPHome ?

A calibrate linear filter is one of the common ways to implement a calibration outside of a simple addition/multiplication.

You’d need to know the values to map. Or have other sources of truth.

How do i convert tasmota offsets to that?

I think about migrating all my Tasmota devices to ESPhome, but recalibrating them would be much work. I am also interested in a simple formula to convert the tasmota calibration to esphome calibration.

Any ideas?

1 Like