Tore calibration and error margin depending on calibration value #23
-
Hello, Default calibration for ampmeter coming with OpenEVSE box is But when using solat diver, lower charge current are completely of by 0.25A and I need to set Here is a comparison with a Shelly EM which was confirmed being accurate: is there a way to set a sort of factor so that 190 is used for lower current and then 220 ? Right now, in Home Assistant I am using an automation that is setting the right calibration value depending if I am using AUTO mode with solar divert (which means low charge currents) or Manual mode (which mean high charge current) - alias: "OpenEVSE: Bugfix Calibration"
trigger:
- platform: state
entity_id:
- select.openevse_charge_control
- switch.openevse_solar_divert
condition: []
action:
- if:
- condition: state
entity_id: switch.openevse_solar_divert
state: "on"
- condition: state
entity_id: select.openevse_charge_control
state: Auto
then:
- service: mqtt.publish
data:
topic: "openevse/rapi/in/$SA"
payload: "190 0"
else:
- service: mqtt.publish
data:
topic: "openevse/rapi/in/$SA"
payload: "220 0"
mode: single |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
@KipK : according to your comment here (OpenEVSE/openevse_esp32_firmware#634 (comment)) RAPi support will be removed from MQTT. So how to fix this issue ? The tore, even if calibrated, leads to wrong results because its calibration seems to be based on a certain power range. It is not accurate both for low current (like 6-7A in divert eco mode) and 20A (in normal mode) |
Beta Was this translation helpful? Give feedback.
-
Are you sure the difference you get is not all about power losses? I see more efficiency by charging high current than low ones. |
Beta Was this translation helpful? Give feedback.
-
@KipK : is there a possibility to have a voltmeter in the box to measure te voltage drop ? Right now, I am feeding the voltage through mqtt, but I am feeding the voltage seen by the shelly. Ideally, the box would need to read the voltage right ? |
Beta Was this translation helpful? Give feedback.
-
Found an alternative: I am computing my cable loss constant:
Then, i am sending to the mqtt the grid voltage reduced :
grid_power and grid_voltage are coming from a shelly EM. Doing that, I can keep the default calibration to |
Beta Was this translation helpful? Give feedback.
-
@KipK : I am wondering if the "power" reported by OpenEVSE is in reality not real power (W) but instead apparent power (VA). I am trying to fine-tune the calibration with the help of an OBD device, which reports the power, volts, current as seen by the car. My Shelly EM is reporting power, power factor and voltage. I can derive the amperage by doing A = W / PF / V, which gives accurately the same amperage as seen by the car (but the car of course sees a lower voltage due to the cable loss). So now, I am injecting to mqtt a voltage that is taking in consideration the cable loss based on the current from the shelly to the evse. The value is also accurate with the reading in the car (reduced by the loss from the box to the car). But the ammeter is measuring the current, so can he get the real difference between active and reactive power or not ? Currently, the power reported, is higher than the reported power of the shelly. Could it be because the power reported is actually VA and not Watts: if I consider the power factor, then the value matches. |
Beta Was this translation helpful? Give feedback.
-
Calibration can be done with both Scale and Offset values. Pick a current in the middle of your desired range and calibrate Scale for that value. Then modify the offset value so that both the Low and High end are close. |
Beta Was this translation helpful? Give feedback.
Are you sure the difference you get is not all about power losses?
Those amp sensor clamps has less than 3% bias and are quiet liners so I doubt you have to use different calibration depending of current.
However if your Shelly is at the beginning of the cables, you miss the power loss crossing those cables to the evse.
I see more efficiency by charging high current than low ones.