dingo35 / SmartEVSE-3.5

Smart Electric Vehicle Charging Station (EVSE)
MIT License
47 stars 21 forks source link

EVMeter power not inverted to positive/absolute when using InvEastron. #145

Open rjmgmt opened 2 weeks ago

rjmgmt commented 2 weeks ago

Describe the bug When using the InvEastron, the power value is shown as positive/absolute value on the SmartEVSE display, however within the WebUI/API/HA-addon it's shown as a negative value. All other related values (energy, current) are positive.

Upload your config {"version":"v3.7.1","serialnr":xxxx,"mode":"SMART","mode_id":3,"car_connected":false,"wifi":{"status":"WL_CONNECTED","ssid":"HKHQ Home","rssi":-35,"bssid":"BA:FB:E4:C1:E4:54"},"evse":{"temp":29,"temp_max":65,"connected":false,"access":true,"mode":1,"loadbl":0,"pwm":1024,"custombutton":false,"solar_stop_timer":0,"state":"Ready to Charge","state_id":0,"error":"None","error_id":0,"rfid":"Not Installed"},"settings":{"charge_current":0,"override_current":0,"current_min":6,"current_max":16,"current_main":25,"current_max_circuit":16,"current_max_sum_mains":0,"max_sum_mains_time":0,"solar_max_import":0,"solar_start_current":6,"solar_stop_time":15,"enable_C2":"Auto","mains_meter":"Sensorbox","starttime":0,"stoptime":0,"repeat":0},"mqtt":{"host":"","port":1883,"topic_prefix":"SmartEVSE-7556","username":"","password_set":false,"status":"Disconnected"},"ocpp":{"mode":"Disabled","backend_url":"","cb_id":"","auth_key":"","auto_auth":"Disabled","auto_auth_idtag":"","status":"Disconnected"},"home_battery":{"current":0,"last_update":0},"ev_meter":{"description":"InvEastrn","address":16,"import_active_power":0,"total_kwh":28.79999924,"charged_kwh":0,"currents":{"TOTAL":0,"L1":0,"L2":0,"L3":0},"import_active_energy":28.79999924,"export_active_energy":0},"mains_meter":{"import_active_energy":0,"export_active_energy":0},"phase_currents":{"TOTAL":12,"L1":2,"L2":19,"L3":-9,"last_data_update":1730124410,"original_data":{"TOTAL":12,"L1":2,"L2":19,"L3":-9}},"backlight":{"timer":0,"status":"OFF"},"color":{"off":{"R":0,"G":0,"B":0},"normal":{"R":0,"G":255,"B":0},"smart":{"R":0,"G":255,"B":0},"solar":{"R":255,"G":170,"B":0},"custom":{"R":0,"G":0,"B":255}}}

Upload a debug log N/A

To Reproduce Use an InvEastron as EVMeter, check power value.

Expected behavior It should transform the value to a positive/absolute value.

Screenshots IMG_8307

dingo35 commented 2 weeks ago

I am currently in an area without 230V/50Hz, so I cannot test Eastron devices for the next 5 weeks; please be patient.