02-16-2024, 07:25 PM
Same here: only charged for real power, but CT clamps measure apparent power so you do need a power factor correction to be able to define the real power usage.
for the calibration: I did many attempts and had the best results with changing the callibration method to "exact" https://esphome.io/components/sensor/#sensor-filter-calibrate-linear
With only a few callibration points for like 2A and 5A I found that the readings where too far off with smaller loads like a light bulb.
I think it may have to do with the attenuation setting of the ADC.
So I just gathered all resistive capacity loads I could get my hand on: 20W, 40W, 55W and 100W light bulbs. A hair dryer, some old electric heater and then combinations of those.
Did all the testing at once by putting all 16 CT's on 1 wire and took note of all the values for each test and put them in.
After adding the calibration values in the yaml, I retested with those loads to see if the readings were ok. only with "exact" I had quite ok values, not with the default setting.
for the calibration: I did many attempts and had the best results with changing the callibration method to "exact" https://esphome.io/components/sensor/#sensor-filter-calibrate-linear
With only a few callibration points for like 2A and 5A I found that the readings where too far off with smaller loads like a light bulb.
I think it may have to do with the attenuation setting of the ADC.
So I just gathered all resistive capacity loads I could get my hand on: 20W, 40W, 55W and 100W light bulbs. A hair dryer, some old electric heater and then combinations of those.
Did all the testing at once by putting all 16 CT's on 1 wire and took note of all the values for each test and put them in.
After adding the calibration values in the yaml, I retested with those loads to see if the readings were ok. only with "exact" I had quite ok values, not with the default setting.

