TeslaLogger icon indicating copy to clipboard operation
TeslaLogger copied to clipboard

go-e Charger -> no PV share calculated

Open rosch99 opened this issue 2 years ago • 8 comments

Describe the bug PV-Share is not calculated when using go-e charger wallbox.

Expected behavior newer firmware versions support the following additional API keys so it should be possible to calculate PV share while charging. pgrid --> PowerGrid (in Watt) ppv --> PowerPV (in Watt) pakku --> PowerAkku (in Watt)

Screenshots If applicable, add screenshots to help explain your problem. screenshot_wallbox_go-e_charger

api_status_go-e_charger

** Teslalogger Type ** Docker on a Raspberry Pi4
Did you update the Image with apt-get update & upgrade?

** Do you use Tasker or iBeacon ** no

Additional context go-e Charger API --> https://github.com/goecharger/go-eCharger-API-v2

rosch99 avatar Apr 02 '24 19:04 rosch99

Hey, grid power (kW) doesn't help. We need energy (kWh).

Adminius avatar Apr 08 '24 08:04 Adminius

Does that mean the wallbox needs to calculate the PV share? I dont think go-e charger can do that, imho "pgrid", "ppv" and "pakku" are (only) used to calculate power for surplus charging.

rosch99 avatar Apr 09 '24 06:04 rosch99

calculate power for surplus charging

That's the problem: power, we need energy ;) If a wallbox has energy values for the grid (like cFos, openWB...), we can use it. Power only doen't help at all in our case.

Adminius avatar Apr 09 '24 06:04 Adminius

Ok, i got it. What i dont get is, since energy is power for a given time (kWh) which timeframe should be used to calc the PV share? Is it energy_Grid and energy_PV for THIS charging session, could be complicated to get? How is this calculated (and reported) by cFos, openWB?

rosch99 avatar Apr 09 '24 12:04 rosch99

cFos (and openWB) has direct connection to the Meter and get precalculated kWh

You can't take power x time, because time should be each second, because you charging with PV and power differs every second...

Adminius avatar Apr 09 '24 12:04 Adminius

I would like to take up this topic again.

What energy data is required to calculate the PV share?

-Amount of energy for this charging session (kWh) from the wallbox? -Amount of energy from the grid (kWh, which is an ever inceasing counter!)

Are these the correct counters, what data do cFos and OpenWB provide?

rosch99 avatar Jul 21 '24 21:07 rosch99

-Amount of energy for this charging session (kWh) from the wallbox? -Amount of energy from the grid (kWh, which is an ever inceasing counter!)

🤪

Adminius avatar Jul 21 '24 21:07 Adminius

Ich möchte das Thema hier nochmal aufgreifen, da es in der aktuellsten API nun neue keys für die Energieberechnung gibt. 👍

Für TL-Entwickler:

Beschreibung API Zugriff: https://github.com/goecharger/go-eCharger-API-v2/blob/main/http-de.md

Die entsprechenden keys sind: (Am go-e Charger muss mindestens die Firmware 58.1(beta) installiert sein!)

wh read-only double Status energy in Wh since car connected whg read-only double Status energy GRID in Wh since car connected whs read-only double Status energy SOLAR in Wh since car connected whb read-only double Status energy BATTERY in Wh since car connected who read-only double Status energy OTHER in Wh since car connected

Image Auszug aus screenshot -> http://192.168.x.x/api/status

Alternativ sind die keys auch als eigenständige MQTT topics verfügbar. go-eCharger/serial-no/wh go-eCharger/serial-no/whg go-eCharger/serial-no/whs go-eCharger/serial-no/whb go-eCharger/serial-no/who

Vielleicht wäre es ja auch sinnvoller und einfacher eine universelle "MQTT-WallBox" zu definieren, bei der man die entsprechenden topics in der config dann selber eintragen kann.


Für Benutzer:

Am go-e Charger muss mindestens die Firmware 58.1(beta) installiert sein!

Die API-v2 muss in der App aktiviert werden unter: Einstellungen->Verbindung->API Einstellungen->"Zugriff auf lokale HTTP-API v2 zulassen".

Die nötigen Information über "power_Grid", "power_PV", "power_Akku" können entweder von
einem (zusätzlich zu erwerbenden) go-e Controller importiert werden oder über den Parameter "ids". In jedem Fall benötigt der go-e Charger aber die Daten um die Aufteilung durchzuführen.

ids Werte per http setzen: http://192.168.x.x/api/set?ids={"pGrid":1000,"pPv":2000,"pAkku":0}

oder alternativ per MQTT setzen: mosquitto_pub -h 192.168.178.147 -t go-eCharger/ids/set -m '{"pGrid": 1000, "pPv": 2000, "pAkku":0}' Quelle: https://github.com/goecharger/go-eCharger-API-v2/issues/199

rosch99 avatar Feb 11 '25 18:02 rosch99