Repository: evcc-io/evcc
Pull request #1609 (2021-09-22 06:57:47)

Add Go-E v2 api support
Refs https://github.com/evcc-io/evcc/discussions/1604 and https://github.com/evcc-io/evcc/discussions/1547

andig: Kommentare umgesetzt
andig: @Sillium007 hast Du eine Chance das zu testen?
Sillium007: > @Sillium007 hast Du eine Chance das zu testen?

Wollte es gerade.. aber meine Frau hat das Auto mit :-D
Gab doch noch andere mit go-e und interesse.. vielleicht kommt da einer schnelelr dazu: @sebnaf @bacanol @msome @mark-sch

Phasenumschaltung könnte schwieriger werden wegen unserer kleineren PV, aber ich behaupte mal wenn der rest geht, sollte das auch gehen, kann mir nur vorstellen dass evcc evtl ein paar Fehler meldet weil der go-e bei uns Aus-/Einstecken simuliert und dann ggf der Status nicht wie erwartet ist.
kaeferfreund: ich schalte das bei uns mal an, wenn der ID4 voll ist
andig: > Edit: v2 bool ist der Parameter? https://github.com/evcc-io/evcc/blob/feature/goe-v3/charger/go-e/api.go
Wird der automatisch gesetzt?

Entfällt- der sollte im aktuellen Stand automatisch erkannt werden!
premultiply: Daran gedacht, dass die V2-API die Statuswerte nur asynchron im Sekundentakt ändert?
PaddyX: Habe gestern Abend ein Build erstellt und eben mal getestet. Ich bekomme zyklisch (ca. alle 30 Minuten) folgende Timeout-Meldung: 

`evcc[32202]: [lp-1  ] ERROR 2021/09/24 15:06:25 charger: Get "http://192.xxx.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)`

Das war mit der API V1 bisher nicht so. Phasenumschaltung von 1 nach 3 durch Umschaltung PV nach Sofort. Nach unten irgendwie nicht. Das will ich morgen noch weiter austesten und entsprechende Logs liefern.

andig: > Das war mit der API V1 bisher nicht so. Phasenumschaltung von 1 nach 3 durch Umschaltung Moduls "PV" nach "Sofort" funktioniert. Wieder zurück nicht. Das will ich morgen noch weiter austesten und entsprechende Logs liefern.

Fehler war in master und ist hier jetzt behoben.

> Ich bekomme zyklisch (ca. alle 30 Minuten) folgende Timeout-Meldung:

Da antwortet der Go-E nicht mehr -> Ticket da...
sebnaf: Die aktuelle Version funktioniert mit der HWv3 einwandfrei. Ich würde mich freuen, wenn das erstmal so bleiben würde. 
andig: Könntet ihr nochmal schauen ob v1 API auch noch tut?
PaddyX: > Könntet ihr nochmal schauen ob v1 API auch noch tut?
Mit neuer Version habe API V2 in der go-e abgeschaltet. Er lädt korrekt, aber diverse Sync-Fehlermeldungen:

```
[lp-1  ] DEBUG 2021/09/24 19:15:04 charger status: B
[lp-1  ] INFO 2021/09/24 19:15:04 car connected
[lp-1  ] DEBUG 2021/09/24 19:15:04 vehicle api refresh
[lp-1  ] DEBUG 2021/09/24 19:15:04 vehicle soc: 48%
[lp-1  ] DEBUG 2021/09/24 19:15:04 vehicle range: 210km
[lp-1  ] WARN 2021/09/24 19:15:05 charger out of sync: expected disabled, got enabled
[lp-1  ] DEBUG 2021/09/24 19:15:05 target charging active for 0001-01-01 00:00:00 +0000 UTC: projected 2021-09-24 19:15:00 +0200 CEST (0s remaining)
[lp-1  ] DEBUG 2021/09/24 19:15:05 max charge current: 0A = 0A + -0.465A (321W @ 3p)
[lp-1  ] DEBUG 2021/09/24 19:15:05 pv max charge current: 6A
[lp-1  ] DEBUG 2021/09/24 19:15:05 charger enable
[lp-1  ] DEBUG 2021/09/24 19:15:11 charge power: 1380W
[lp-1  ] DEBUG 2021/09/24 19:15:11 charge currents: [5.9 0 0]A
[lp-1  ] DEBUG 2021/09/24 19:15:12 charger status: C
[lp-1  ] INFO 2021/09/24 19:15:12 start charging ->
[lp-1  ] DEBUG 2021/09/24 19:15:12 vehicle soc: 48%
[lp-1  ] DEBUG 2021/09/24 19:15:12 vehicle range: 210km
[lp-1  ] WARN 2021/09/24 19:15:12 charger out of sync: expected enabled, got disabled
[lp-1  ] WARN 2021/09/24 19:15:14 charger logic error: disabled but charging
[lp-1  ] DEBUG 2021/09/24 19:15:14 max charge current: 5.55A = 6A + -0.448A (309W @ 3p)
[lp-1  ] DEBUG 2021/09/24 19:15:14 pv max charge current: 6A
[lp-1  ] DEBUG 2021/09/24 19:15:37 charge power: 1360W
[lp-1  ] DEBUG 2021/09/24 19:15:41 charge currents: [5.9 0 0]A
[lp-1  ] DEBUG 2021/09/24 19:15:41 detected phases: 1p [5.9 0 0]A
[lp-1  ] DEBUG 2021/09/24 19:15:43 charger status: C
[lp-1  ] DEBUG 2021/09/24 19:15:43 vehicle soc: 48%
[lp-1  ] DEBUG 2021/09/24 19:15:43 vehicle range: 210km
[lp-1  ] WARN 2021/09/24 19:15:43 charger out of sync: expected enabled, got disabled
[lp-1  ] WARN 2021/09/24 19:15:43 charger logic error: disabled but charging
[lp-1  ] DEBUG 2021/09/24 19:15:43 max charge current: 0A = 6A + -7.17A (1650W @ 1p)
```
premultiply: Das sieht genau nach dem asynchronen internen Statusupdate im Sekundenintervall aus. Wenn man zu schnell fragt bekommt man noch einen alten Status. Man muss also immer mindestens eine Sekunde warten… 🙈
PaddyX: > Das sieht genau nach dem asynchronen internen Statusupdate im Sekundenintervall aus. Wenn man zu schnell fragt bekommt man noch einen alten Status. Man muss also immer mindestens eine Sekunde warten…

Ich kann Dir leider nicht ganz folgen, da bin ich nicht tief genug drin. Heute morgen lädt er auf jeden Fall mit der API V1 im Modus "PV" obwohl nicht genügend Leistung da ist: 

```
[main  ] INFO 2021/09/25 10:24:36 evcc 0.64 (7fd4e25)
[main  ] INFO 2021/09/25 10:24:36 using config file evcc.yaml
[main  ] INFO 2021/09/25 10:24:36 listening at 0.0.0.0:7070
[mqtt  ] INFO 2021/09/25 10:24:36 connecting evcc-2057207377 at localhost:1883
[mqtt  ] DEBUG 2021/09/25 10:24:36 localhost:1883 connected
[cache ] DEBUG 2021/09/25 10:24:41 sponsor: PaddyX
[cache ] DEBUG 2021/09/25 10:24:41 title: Carport
[cache ] DEBUG 2021/09/25 10:24:41 minCurrent: 6
[cache ] DEBUG 2021/09/25 10:24:41 maxCurrent: 16
[cache ] DEBUG 2021/09/25 10:24:41 phases: 3
[cache ] DEBUG 2021/09/25 10:24:41 activePhases: 3
[cache ] DEBUG 2021/09/25 10:24:41 hasVehicle: true
[lp-1  ] INFO 2021/09/25 10:24:41 vehicle updated: unknown -> Enyaq
[cache ] DEBUG 2021/09/25 10:24:41 mode: pv
[cache ] DEBUG 2021/09/25 10:24:41 targetSoC: 80
[cache ] DEBUG 2021/09/25 10:24:41 minSoC: 30
[cache ] DEBUG 2021/09/25 10:24:41 vehiclePresent: true
[cache ] DEBUG 2021/09/25 10:24:41 vehicleTitle: Enyaq
[cache ] DEBUG 2021/09/25 10:24:41 vehicleCapacity: 62
[site  ] INFO 2021/09/25 10:24:42 site config:
[cache ] DEBUG 2021/09/25 10:24:42 siteTitle: Klaus Auf Schiels
[site  ] INFO 2021/09/25 10:24:42   meters:    grid ✓ pv ✓ battery ✗
[site  ] INFO 2021/09/25 10:24:42     grid:    power ✓ energy ✓ currents ✗
[site  ] INFO 2021/09/25 10:24:42     pv 0:    power ✓ energy ✓ currents ✗
[lp-1  ] INFO 2021/09/25 10:24:42 loadpoint 1:
[lp-1  ] INFO 2021/09/25 10:24:42   mode:      pv
[lp-1  ] INFO 2021/09/25 10:24:42   charger:   power ✓ energy ✗ currents ✓ timer ✗
[lp-1  ] INFO 2021/09/25 10:24:42   meters:    charge ✓
[lp-1  ] INFO 2021/09/25 10:24:42     charge:  power ✓ energy ✗ currents ✓
[lp-1  ] INFO 2021/09/25 10:24:42   vehicles:  ✓
[lp-1  ] INFO 2021/09/25 10:24:42     car 0:   range ✓ finish ✓ status ✓ climate ✗
[cache ] DEBUG 2021/09/25 10:24:42 gridConfigured: true
[cache ] DEBUG 2021/09/25 10:24:42 pvConfigured: true
[cache ] DEBUG 2021/09/25 10:24:42 batteryConfigured: false
[site  ] DEBUG 2021/09/25 10:24:42 ----
[site  ] DEBUG 2021/09/25 10:24:42 pv power: 1152W
[site  ] DEBUG 2021/09/25 10:24:42 grid power: 446W
[site  ] DEBUG 2021/09/25 10:24:42 site power: 516W
[cache ] DEBUG 2021/09/25 10:24:42 pvPower: 1152
[cache ] DEBUG 2021/09/25 10:24:42 gridPower: 446
[cache ] DEBUG 2021/09/25 10:24:42 chargeConfigured: true
[cache ] DEBUG 2021/09/25 10:24:42 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:24:42 charge power: 1350W
[cache ] DEBUG 2021/09/25 10:24:42 chargePower: 1350
[lp-1  ] DEBUG 2021/09/25 10:24:43 charge currents: [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:24:43 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:24:43 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:24:43 chargedEnergy: 137.94444444444446
[cache ] DEBUG 2021/09/25 10:24:43 chargeDuration: 0s
[lp-1  ] DEBUG 2021/09/25 10:24:43 charger status: C
[lp-1  ] INFO 2021/09/25 10:24:43 start charging ->
[cache ] DEBUG 2021/09/25 10:24:43 connectedDuration: 0s
[cache ] DEBUG 2021/09/25 10:24:43 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:24:43 connected: true
[cache ] DEBUG 2021/09/25 10:24:43 charging: true
[cache ] DEBUG 2021/09/25 10:24:43 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:24:43 vehicle soc: 41%
[cache ] DEBUG 2021/09/25 10:24:43 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:24:43 chargeRemainingDuration: 14h32m32.542369564s
[cache ] DEBUG 2021/09/25 10:24:43 chargeRemainingEnergy: 26866.666666666668
[lp-1  ] DEBUG 2021/09/25 10:24:43 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:24:43 range: 172
[lp-1  ] WARN 2021/09/25 10:24:43 charger logic error: disabled but charging
[lp-1  ] DEBUG 2021/09/25 10:24:43 target charging active for 0001-01-01 00:00:00 +0000 UTC: projected 2021-09-25 10:25:00 +0200 CEST (0s remaining)
[cache ] DEBUG 2021/09/25 10:24:43 timerSet: false
[cache ] DEBUG 2021/09/25 10:24:43 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:24:43 max charge current: 0A = 0A + -0.748A (516W @ 3p)
[lp-1  ] DEBUG 2021/09/25 10:24:43 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:24:43 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:24:43 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:24:43 timerProjectedEnd: 2021-09-25 10:25:00 +0200 CEST
[site  ] DEBUG 2021/09/25 10:25:02 ----
[site  ] DEBUG 2021/09/25 10:25:02 pv power: 1175W
[site  ] DEBUG 2021/09/25 10:25:02 grid power: 532W
[cache ] DEBUG 2021/09/25 10:25:02 pvPower: 1175
[cache ] DEBUG 2021/09/25 10:25:02 gridPower: 532
[site  ] DEBUG 2021/09/25 10:25:02 site power: 602W
[cache ] DEBUG 2021/09/25 10:25:02 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:25:04 charge power: 1340W
[cache ] DEBUG 2021/09/25 10:25:04 chargePower: 1340
[lp-1  ] DEBUG 2021/09/25 10:25:04 charge currents: [5.8 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:25:04 detected phases: 1p [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:25:04 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:25:04 activePhases: 1
[cache ] DEBUG 2021/09/25 10:25:04 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:25:04 chargedEnergy: 146.2
[cache ] DEBUG 2021/09/25 10:25:04 chargeDuration: 22s
[lp-1  ] DEBUG 2021/09/25 10:25:04 charger status: C
[cache ] DEBUG 2021/09/25 10:25:04 connected: true
[cache ] DEBUG 2021/09/25 10:25:04 charging: true
[cache ] DEBUG 2021/09/25 10:25:04 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:25:04 vehicle soc: 41%
[lp-1  ] DEBUG 2021/09/25 10:25:04 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:25:04 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:25:04 chargeRemainingDuration: 14h32m32.542369649s
[cache ] DEBUG 2021/09/25 10:25:04 range: 172
[lp-1  ] WARN 2021/09/25 10:25:04 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:25:04 timerSet: false
[cache ] DEBUG 2021/09/25 10:25:04 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:25:04 max charge current: 0A = 0A + -2.62A (602W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:25:04 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:25:04 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:25:04 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:25:04 timerProjectedEnd: 2021-09-25 10:25:00 +0200 CEST
[site  ] DEBUG 2021/09/25 10:25:22 ----
[site  ] DEBUG 2021/09/25 10:25:22 pv power: 1181W
[site  ] DEBUG 2021/09/25 10:25:22 grid power: 391W
[site  ] DEBUG 2021/09/25 10:25:22 site power: 461W
[cache ] DEBUG 2021/09/25 10:25:22 pvPower: 1181
[cache ] DEBUG 2021/09/25 10:25:22 gridPower: 391
[cache ] DEBUG 2021/09/25 10:25:22 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:25:23 charge power: 1350W
[cache ] DEBUG 2021/09/25 10:25:23 chargePower: 1350
[lp-1  ] DEBUG 2021/09/25 10:25:23 charge currents: [5.8 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:25:23 detected phases: 1p [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:25:23 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:25:23 activePhases: 1
[cache ] DEBUG 2021/09/25 10:25:23 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:25:23 chargedEnergy: 153.31666666666666
[cache ] DEBUG 2021/09/25 10:25:23 chargeDuration: 40s
[lp-1  ] DEBUG 2021/09/25 10:25:23 charger status: C
[cache ] DEBUG 2021/09/25 10:25:23 connected: true
[cache ] DEBUG 2021/09/25 10:25:23 charging: true
[cache ] DEBUG 2021/09/25 10:25:23 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:25:23 vehicle soc: 41%
[lp-1  ] DEBUG 2021/09/25 10:25:23 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:25:23 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:25:23 chargeRemainingDuration: 14h32m32.542369416s
[cache ] DEBUG 2021/09/25 10:25:23 range: 172
[lp-1  ] WARN 2021/09/25 10:25:23 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:25:23 timerSet: false
[cache ] DEBUG 2021/09/25 10:25:23 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:25:23 max charge current: 0A = 0A + -2A (461W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:25:23 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:25:23 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:25:23 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:25:23 timerProjectedEnd: 2021-09-25 10:25:00 +0200 CEST
[site  ] DEBUG 2021/09/25 10:25:42 ----
[site  ] DEBUG 2021/09/25 10:25:42 pv power: 1195W
[site  ] DEBUG 2021/09/25 10:25:42 grid power: 458W
[cache ] DEBUG 2021/09/25 10:25:42 pvPower: 1195
[cache ] DEBUG 2021/09/25 10:25:42 gridPower: 458
[site  ] DEBUG 2021/09/25 10:25:42 site power: 528W
[cache ] DEBUG 2021/09/25 10:25:42 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:25:53 charge power: 1350W
[cache ] DEBUG 2021/09/25 10:25:53 chargePower: 1350
[lp-1  ] DEBUG 2021/09/25 10:25:53 charge currents: [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:25:53 chargeCurrents: [5.8 0 0]
[lp-1  ] DEBUG 2021/09/25 10:25:53 detected phases: 1p [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:25:53 activePhases: 1
[cache ] DEBUG 2021/09/25 10:25:53 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:25:53 chargedEnergy: 164.57777777777775
[cache ] DEBUG 2021/09/25 10:25:53 chargeDuration: 1m11s
[lp-1  ] DEBUG 2021/09/25 10:25:54 charger status: C
[cache ] DEBUG 2021/09/25 10:25:54 connected: true
[cache ] DEBUG 2021/09/25 10:25:54 charging: true
[cache ] DEBUG 2021/09/25 10:25:54 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:25:54 vehicle soc: 41%
[lp-1  ] DEBUG 2021/09/25 10:25:54 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:25:54 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:25:54 chargeRemainingDuration: 14h32m32.542369613s
[cache ] DEBUG 2021/09/25 10:25:54 range: 172
[lp-1  ] WARN 2021/09/25 10:25:54 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:25:54 timerSet: false
[cache ] DEBUG 2021/09/25 10:25:54 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:25:54 max charge current: 0A = 0A + -2.3A (528W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:25:54 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:25:54 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:25:54 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:25:54 timerProjectedEnd: 2021-09-25 10:26:00 +0200 CEST
[site  ] DEBUG 2021/09/25 10:26:02 ----
[site  ] DEBUG 2021/09/25 10:26:02 pv power: 1198W
[site  ] DEBUG 2021/09/25 10:26:02 grid power: 471W
[site  ] DEBUG 2021/09/25 10:26:02 site power: 541W
[cache ] DEBUG 2021/09/25 10:26:02 pvPower: 1198
[cache ] DEBUG 2021/09/25 10:26:02 gridPower: 471
[cache ] DEBUG 2021/09/25 10:26:02 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:26:09 charge power: 1360W
[cache ] DEBUG 2021/09/25 10:26:09 chargePower: 1360
[lp-1  ] DEBUG 2021/09/25 10:26:09 charge currents: [5.8 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:26:09 detected phases: 1p [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:26:09 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:26:09 activePhases: 1
[cache ] DEBUG 2021/09/25 10:26:09 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:26:09 chargedEnergy: 170.59444444444443
[cache ] DEBUG 2021/09/25 10:26:09 chargeDuration: 1m27s
[lp-1  ] DEBUG 2021/09/25 10:26:10 charger status: C
[cache ] DEBUG 2021/09/25 10:26:10 connected: true
[cache ] DEBUG 2021/09/25 10:26:10 charging: true
[cache ] DEBUG 2021/09/25 10:26:10 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:26:10 vehicle soc: 41%
[cache ] DEBUG 2021/09/25 10:26:10 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:26:10 chargeRemainingDuration: 14h32m32.542089199s
[lp-1  ] DEBUG 2021/09/25 10:26:10 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:26:10 range: 172
[lp-1  ] WARN 2021/09/25 10:26:10 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:26:10 timerSet: false
[cache ] DEBUG 2021/09/25 10:26:10 timerActive: true
[cache ] DEBUG 2021/09/25 10:26:10 timerProjectedEnd: 2021-09-25 10:26:00 +0200 CEST
[lp-1  ] DEBUG 2021/09/25 10:26:10 max charge current: 0A = 0A + -2.35A (541W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:26:10 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:26:10 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:26:10 pv max charge current: 0A
[site  ] DEBUG 2021/09/25 10:26:22 ----
[site  ] DEBUG 2021/09/25 10:26:22 pv power: 1190W
[site  ] DEBUG 2021/09/25 10:26:22 grid power: 507W
[site  ] DEBUG 2021/09/25 10:26:22 site power: 577W
[cache ] DEBUG 2021/09/25 10:26:22 pvPower: 1190
[cache ] DEBUG 2021/09/25 10:26:22 gridPower: 507
[cache ] DEBUG 2021/09/25 10:26:22 mode: pv
[lp-1  ] DEBUG 2021/09/25 10:26:26 charge power: 1320W
[cache ] DEBUG 2021/09/25 10:26:26 chargePower: 1320
[lp-1  ] DEBUG 2021/09/25 10:26:26 charge currents: [5.7 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:26:26 detected phases: 1p [5.7 0 0]A
[cache ] DEBUG 2021/09/25 10:26:26 chargeCurrents: [5.7 0 0]
[cache ] DEBUG 2021/09/25 10:26:26 activePhases: 1
[cache ] DEBUG 2021/09/25 10:26:26 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:26:26 chargedEnergy: 176.9638888888889
[cache ] DEBUG 2021/09/25 10:26:26 chargeDuration: 1m44s
[lp-1  ] DEBUG 2021/09/25 10:26:26 charger status: C
[cache ] DEBUG 2021/09/25 10:26:26 connected: true
[cache ] DEBUG 2021/09/25 10:26:26 charging: true
[cache ] DEBUG 2021/09/25 10:26:26 enabled: false
[lp-1  ] DEBUG 2021/09/25 10:26:26 vehicle soc: 41%
[cache ] DEBUG 2021/09/25 10:26:26 vehicleSoc: 41
[cache ] DEBUG 2021/09/25 10:26:26 chargeRemainingDuration: 14h32m32.542369441s
[lp-1  ] DEBUG 2021/09/25 10:26:27 vehicle range: 172km
[cache ] DEBUG 2021/09/25 10:26:27 range: 172
[lp-1  ] WARN 2021/09/25 10:26:27 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:26:27 timerSet: false
[cache ] DEBUG 2021/09/25 10:26:27 timerActive: true
[cache ] DEBUG 2021/09/25 10:26:27 timerProjectedEnd: 2021-09-25 10:26:00 +0200 CEST
[lp-1  ] DEBUG 2021/09/25 10:26:27 max charge current: 0A = 0A + -2.51A (577W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:26:27 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:26:27 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:26:27 pv max charge current: 0A
```
andig: > charger logic error: disabled but charging

Hast Du die Kommunikation mit dem Go-E evtl. Noch als TRACE Log? Die spannende Frage ist warum der nicht abschaltet. Läuft bei Dir noch etwas anderes das ihn immer wieder einschaltet? Die Logik ist eigentlich im evcc Kern und da gabs bisher keine Probleme. Ich vermute das Problem hier im Code oder im Charger.
msome: Nachdem mich die Sonne gestern im Stich ließ, steckt mein Auto seit heute früh 
auch mit der evcc-branch-Version von gestern Abend ~21 Uhr beim Aufladen.

In der go-E App hatte ich auf 3 Phasen gestellt bevor ich das Laden begonnen habe.
Minimum ist im config-File auf 6A konfiguriert.
Dann auf "PV" geschalten, da passiert bei mir nie was, denn ich darf nicht einspeisen. 
Im Charger blieb die 3p Einstellung aktiv.

Wenn ich auf Min+PV schalte, lädt er nicht mit 1p-6A sondern 3p-6A. Bei "Min" hätte ich 1p erwartet.
Danach habe ich während der Ladung in der go-e App von 3p auf 1p umgeschalten. EVCC bekommt das scheinbar nicht mit, sondern zeigt nach wie vor 4.1kW an, der Charger läuft aber mit 1,45kW.

Kann ich im syslog irgendwie sehen, ob die v2-api überhaupt richtig erkannt wurde?
PaddyX: > > charger logic error: disabled but charging
> 
> Hast Du die Kommunikation mit dem Go-E evtl. Noch als TRACE Log? Die spannende Frage ist warum der nicht abschaltet. Läuft bei Dir noch etwas anderes das ihn immer wieder einschaltet? Die Logik ist eigentlich im evcc Kern und da gabs bisher keine Probleme. Ich vermute das Problem hier im Code oder im Charger.

Nein sonst läuft eigentlich nichts. Ich hab mal auf Trace gestellt. Hoffe die sensibelsten Sachen habe ich rausgelöscht. Was auffällt, er lädt unmittelbar direkt nach dem einstecken.

```
main  ] INFO 2021/09/25 10:53:21 evcc 0.64 (7fd4e25)
[main  ] INFO 2021/09/25 10:53:21 using config file evcc.yaml
[main  ] INFO 2021/09/25 10:53:21 listening at 0.0.0.0:7070
[mqtt  ] INFO 2021/09/25 10:53:21 connecting evcc-1256518812 at localhost:1883
[mqtt  ] DEBUG 2021/09/25 10:53:21 localhost:1883 connected
[go-e  ] TRACE 2021/09/25 10:53:21 GET http://192.168.xxx.xxx/api/status?filter=alw
[go-e  ] TRACE 2021/09/25 10:53:21 
[cache ] DEBUG 2021/09/25 10:53:23 sponsor: PaddyX
[cache ] DEBUG 2021/09/25 10:53:23 title: Carport
[cache ] DEBUG 2021/09/25 10:53:23 minCurrent: 6
[cache ] DEBUG 2021/09/25 10:53:23 maxCurrent: 16
[cache ] DEBUG 2021/09/25 10:53:23 phases: 3
[cache ] DEBUG 2021/09/25 10:53:23 activePhases: 3
[cache ] DEBUG 2021/09/25 10:53:23 hasVehicle: true
[cache ] DEBUG 2021/09/25 10:53:23 mode: pv
[lp-1  ] INFO 2021/09/25 10:53:23 vehicle updated: unknown -> Enyaq
[cache ] DEBUG 2021/09/25 10:53:23 targetSoC: 80
[cache ] DEBUG 2021/09/25 10:53:23 minSoC: 30
[cache ] DEBUG 2021/09/25 10:53:23 vehiclePresent: true
[cache ] DEBUG 2021/09/25 10:53:23 vehicleTitle: Enyaq
[cache ] DEBUG 2021/09/25 10:53:23 vehicleCapacity: 62
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1073
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835255944","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[18,23.25],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[site  ] INFO 2021/09/25 10:53:23 site config:
[site  ] INFO 2021/09/25 10:53:23   meters:    grid ✓ pv ✓ battery ✗
[cache ] DEBUG 2021/09/25 10:53:23 siteTitle: Klaus Auf Schiels
[cache ] DEBUG 2021/09/25 10:53:23 gridConfigured: true
[site  ] INFO 2021/09/25 10:53:23     grid:    power ✓ energy ✓ currents ✗
[site  ] INFO 2021/09/25 10:53:23     pv 0:    power ✓ energy ✓ currents ✗
[lp-1  ] INFO 2021/09/25 10:53:23 loadpoint 1:
[lp-1  ] INFO 2021/09/25 10:53:23   mode:      pv
[cache ] DEBUG 2021/09/25 10:53:23 pvConfigured: true
[cache ] DEBUG 2021/09/25 10:53:23 batteryConfigured: false
[lp-1  ] INFO 2021/09/25 10:53:23   charger:   power ✓ energy ✗ currents ✓ timer ✗
[lp-1  ] INFO 2021/09/25 10:53:23   meters:    charge ✓
[lp-1  ] INFO 2021/09/25 10:53:23     charge:  power ✓ energy ✗ currents ✓
[lp-1  ] INFO 2021/09/25 10:53:23   vehicles:  ✓
[lp-1  ] INFO 2021/09/25 10:53:23     car 0:   range ✓ finish ✓ status ✓ climate ✗
[cache ] DEBUG 2021/09/25 10:53:23 chargeConfigured: true
[site  ] DEBUG 2021/09/25 10:53:23 ----
[site  ] DEBUG 2021/09/25 10:53:23 pv power: 1064W
[site  ] DEBUG 2021/09/25 10:53:23 grid power: -212W
[site  ] DEBUG 2021/09/25 10:53:23 site power: -142W
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:53:23 pvPower: 1064
[cache ] DEBUG 2021/09/25 10:53:23 gridPower: -212
[cache ] DEBUG 2021/09/25 10:53:23 mode: pv
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1078
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835255993","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.875,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:23 charge power: 0W
[cache ] DEBUG 2021/09/25 10:53:23 chargePower: 0
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1078
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835256036","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.875,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:23 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/25 10:53:23 chargeCurrents: [0 0 0]
[cache ] DEBUG 2021/09/25 10:53:23 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1078
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835256086","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.875,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[cache ] DEBUG 2021/09/25 10:53:23 chargedEnergy: 42.13055555555555
[cache ] DEBUG 2021/09/25 10:53:23 chargeDuration: 0s
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1078
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835256125","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.875,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:23 charger status: A
[lp-1  ] INFO 2021/09/25 10:53:23 car disconnected
[cache ] DEBUG 2021/09/25 10:53:23 connectedDuration: 0s
[cache ] DEBUG 2021/09/25 10:53:23 chargedEnergy: 42.13055555555555
[cache ] DEBUG 2021/09/25 10:53:23 connectedDuration: 163.905µs
[cache ] DEBUG 2021/09/25 10:53:23 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:53:23 connected: false
[cache ] DEBUG 2021/09/25 10:53:23 charging: false
[cache ] DEBUG 2021/09/25 10:53:23 enabled: false
[cache ] DEBUG 2021/09/25 10:53:23 vehicleSoc: -1
[cache ] DEBUG 2021/09/25 10:53:23 chargeRemainingDuration: -1ns
[go-e  ] TRACE 2021/09/25 10:53:23 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:53:23 range: -1
[go-e  ] TRACE 2021/09/25 10:53:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1078
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835256190","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.875,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[227,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[mqtt  ] TRACE 2021/09/25 10:53:24 recv smarthomeng/pvanlage/prodleistung: '15131.348'
[mqtt  ] TRACE 2021/09/25 10:53:32 recv smarthomeng/pvanlage/leistung: '1074.0'
[mqtt  ] TRACE 2021/09/25 10:53:34 recv smarthomeng/pvanlage/prodleistung: '15131.351'
[mqtt  ] TRACE 2021/09/25 10:53:35 recv smarthomeng/edl21/aktverbrauch: '-284.0'
[mqtt  ] TRACE 2021/09/25 10:53:36 recv smarthomeng/edl21/aktverbrauch: '-712.0'
[mqtt  ] TRACE 2021/09/25 10:53:42 recv smarthomeng/pvanlage/leistung: '1094.0'
[site  ] DEBUG 2021/09/25 10:53:43 ----
[site  ] DEBUG 2021/09/25 10:53:43 pv power: 1094W
[site  ] DEBUG 2021/09/25 10:53:43 grid power: -712W
[site  ] DEBUG 2021/09/25 10:53:43 site power: -642W
[cache ] DEBUG 2021/09/25 10:53:43 pvPower: 1094
[cache ] DEBUG 2021/09/25 10:53:43 gridPower: -712
[cache ] DEBUG 2021/09/25 10:53:43 mode: pv
[go-e  ] TRACE 2021/09/25 10:53:43 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1077
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835275997","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.75,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[228,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:43 charge power: 0W
[go-e  ] TRACE 2021/09/25 10:53:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:53:43 chargePower: 0
[go-e  ] TRACE 2021/09/25 10:53:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1077
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835276053","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.75,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[228,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:43 charge currents: [0 0 0]A
[cache ] DEBUG 2021/09/25 10:53:43 chargeCurrents: [0 0 0]
[go-e  ] TRACE 2021/09/25 10:53:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:53:43 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:53:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1077
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835276098","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.75,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[228,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[cache ] DEBUG 2021/09/25 10:53:43 chargedEnergy: 42.13055555555555
[cache ] DEBUG 2021/09/25 10:53:43 chargeDuration: 0s
[go-e  ] TRACE 2021/09/25 10:53:43 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:53:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1077
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835276140","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.75,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[228,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[lp-1  ] DEBUG 2021/09/25 10:53:43 charger status: A
[cache ] DEBUG 2021/09/25 10:53:43 connected: false
[cache ] DEBUG 2021/09/25 10:53:43 charging: false
[cache ] DEBUG 2021/09/25 10:53:43 enabled: false
[cache ] DEBUG 2021/09/25 10:53:43 vehicleSoc: -1
[cache ] DEBUG 2021/09/25 10:53:43 chargeRemainingDuration: -1ns
[go-e  ] TRACE 2021/09/25 10:53:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:53:43 range: -1
[go-e  ] TRACE 2021/09/25 10:53:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1077
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211053","rbc":"161","rbt":"835276200","car":"1","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"56","fsp":"1","tma":[17.75,23.125],"dws":"15167","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[228,226,227,0,0,0,0,0,0,0,0,0,0,0,0,0],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835122}
[mqtt  ] TRACE 2021/09/25 10:53:44 recv smarthomeng/pvanlage/prodleistung: '15131.354'
[mqtt  ] TRACE 2021/09/25 10:53:48 recv smarthomeng/edl21/aktverbrauch: '-719.0'
[mqtt  ] TRACE 2021/09/25 10:53:52 recv smarthomeng/pvanlage/leistung: '1102.0'
[mqtt  ] TRACE 2021/09/25 10:53:54 recv smarthomeng/pvanlage/prodleistung: '15131.357'
[mqtt  ] TRACE 2021/09/25 10:53:59 recv smarthomeng/edl21/aktverbrauch: '597.0'
[mqtt  ] TRACE 2021/09/25 10:54:02 recv smarthomeng/pvanlage/leistung: '1117.0'
[site  ] DEBUG 2021/09/25 10:54:03 ----
[site  ] DEBUG 2021/09/25 10:54:03 pv power: 1117W
[site  ] DEBUG 2021/09/25 10:54:03 grid power: 597W
[site  ] DEBUG 2021/09/25 10:54:03 site power: 667W
[cache ] DEBUG 2021/09/25 10:54:03 pvPower: 1117
[cache ] DEBUG 2021/09/25 10:54:03 gridPower: 597
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:03 mode: pv
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835295985","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"1392","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,134,100,1,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:03 charge power: 1340W
[cache ] DEBUG 2021/09/25 10:54:03 chargePower: 1340
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835296025","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"1392","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,134,100,1,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:03 charge currents: [5.8 0 0]A
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:03 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:54:03 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835296073","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"1392","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,134,100,1,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:03 chargedEnergy: 3.8666666666666667
[cache ] DEBUG 2021/09/25 10:54:03 chargeDuration: 0s
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835296137","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"1530","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,3,0,90],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:03 charger status: C
[lp-1  ] INFO 2021/09/25 10:54:03 car connected
[lp-1  ] DEBUG 2021/09/25 10:54:03 vehicle api refresh
[lp-1  ] INFO 2021/09/25 10:54:03 start charging ->
[cache ] DEBUG 2021/09/25 10:54:03 chargedEnergy: 0
[cache ] DEBUG 2021/09/25 10:54:03 connectedDuration: 0s
[cache ] DEBUG 2021/09/25 10:54:03 chargeCurrent: 0
[cache ] DEBUG 2021/09/25 10:54:03 connected: true
[cache ] DEBUG 2021/09/25 10:54:03 charging: true
[cache ] DEBUG 2021/09/25 10:54:03 enabled: false
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835296188","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"1530","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,3,0,90],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[enyaq ] TRACE 2021/09/25 10:54:03 GET https://api.connect.skoda-auto.cz/api/v1/charging/TMBJB7NY6NF009831/status
[enyaq ] TRACE 2021/09/25 10:54:03 
GET /api/v1/charging/TMBJB7NY6NF009831/status HTTP/1.1
Host: api.connect.skoda-auto.cz
User-Agent: Go-http-client/1.1
Accept: application/json
Authorization: Bearer eyJraWQiOiIzY2Y0ZmM5MGY3ODVlMzEwIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwZGFiMGM3MC1iNDVlLTRiZDYtYjExNi1mNmFmZGY0MjA5NDAiLCJhdWQiOiI3ZjA0NWVlZS03MDAzLTQzNzktOTk2OC05MzU1ZWQyYWRiMDZAYXBwc192dy1kaWxhYl9jb20iLCJzY3AiOiJvcGVuaWQgcHJvZmlsZSBwaG9uZSBhZGRyZXNzIGNhcnMgZW1haWwgYmlydGhkYXRlIGJhZGdlIGRlYWxlcnMgZHJpdmVyc0xpY2Vuc2UgbWJiIiwiYWF0IjoiaWRlbnRpdHlraXQiLCJpc3MiOiJodHRwczpcL1wvaWRlbnRpdHkudndncm91cC5pbyIsImp0dCI6ImFjY2Vzc190b2tlbiIsImV4cCI6MTYzMjU2MzYwMiwiaWF0IjoxNjMyNTYwMDAyLCJsZWUiOlsiU0tPREEiXSwianRpIjoiMmU2Y2FiNzEtYjEzNi00MTM5LWI3MjUtNzhlYmJhOGE3MDFjIn0.im1LyBed5aKCpAsnCycV0MOMI34XyidgMT5iBr8ht3yfOhhoq1AxIsyrDTzspx0HZAQU_TyTGANOs_PBRaNA2m3fx-RqsOrya524jrs9LENqahxn-CI4vVToXgrTKR67rZRehs-qt4KD9XN0LDlT4B_vj2lnqGx5u2ENgU1C_dVViC8JyJ7-PV8QVFmsnT5rC_KKDlAb3fMAQz-s67SDqmIfjf0al94a2oQCmxapiTYQVTPstX-3krR3wt5rjEDh7Efi6SDdHCIUIgEFQfvHyzS5NRTmn_H_SF703gAbJ6tZkQcbL1OiD2CRl080QZ0eWhZpehjKLALTLCyS5nU36FVmhAvw9HtlowSfajsNocsM47VRz7111t0pzRum6J_QHoZmhxYfHAByUGuq7zUac19EFqJWejwRlqbOqu2q2wcMOWt29P33A61dEgOVGT2-b73x0sPJhN6pxvOg47eBTifWSnjRgzFjFlk-kQJ-AKDKi1uwRHqGJ19sfecsZ3QFNt3NEy57XmE6g3t7SjehXF8GSIGwSsxycAIlymhfCElJhuIeYujsvjaOnodlMZHrszdhpUCl8mqiLdNc9Ei0ZWaU45mAtmAnxyt04_zSlbb2wk2obDCJ89wpt8QS2qh_8BPERWtTrtkvV17cwZm3rGB6oyuGX8RLJnR5yUQhf4U
Accept-Encoding: gzip

HTTP/2.0 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/json
Date: Sat, 25 Sep 2021 08:54:03 GMT
Etag: W/"0dc4ac9ea908e9a1e1a8a3ce3de948887"
Expect-Ct: max-age=0, enforce
Expires: 0
Pragma: no-cache
Referrer-Policy: no-referrer
Request-Id: 0f863dbbfe0576d3
Server: nginx
Strict-Transport-Security: max-age=15724800; includeSubDomains
Vary: Accept-Encoding
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block

{"plug":{"connectionState":"Connected","lockState":"Locked"},"charging":{"state":"Charging","remainingToCompleteInSeconds":76800,"chargingPowerInWatts":1000.0,"chargingRateInKilometersPerHour":6.0,"chargingType":"Ac","chargeMode":"MANUAL","chargingSettings":"DEFAULT"},"battery":{"cruisingRangeElectricInMeters":174000,"stateOfChargeInPercent":42}}
[lp-1  ] DEBUG 2021/09/25 10:54:03 vehicle soc: 42%
[cache ] DEBUG 2021/09/25 10:54:03 vehicleSoc: 42
[cache ] DEBUG 2021/09/25 10:54:03 chargeRemainingDuration: 13h58m37.241376179s
[lp-1  ] DEBUG 2021/09/25 10:54:03 vehicle range: 174km
[cache ] DEBUG 2021/09/25 10:54:03 chargeRemainingEnergy: 26177.777777777777
[cache ] DEBUG 2021/09/25 10:54:03 range: 174
[go-e  ] TRACE 2021/09/25 10:54:03 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835296512","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.375],"dws":"1530","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,3,0,90],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] WARN 2021/09/25 10:54:03 charger logic error: disabled but charging
[lp-1  ] DEBUG 2021/09/25 10:54:03 target charging active for 0001-01-01 00:00:00 +0000 UTC: projected 2021-09-25 10:54:00 +0200 CEST (0s remaining)
[cache ] DEBUG 2021/09/25 10:54:03 timerSet: false
[cache ] DEBUG 2021/09/25 10:54:03 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:54:03 max charge current: 0A = 0A + -0.967A (667W @ 3p)
[lp-1  ] DEBUG 2021/09/25 10:54:03 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:54:03 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:54:03 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:54:03 timerProjectedEnd: 2021-09-25 10:54:00 +0200 CEST
[mqtt  ] TRACE 2021/09/25 10:54:04 recv smarthomeng/pvanlage/prodleistung: '15131.361'
[mqtt  ] TRACE 2021/09/25 10:54:11 recv smarthomeng/edl21/aktverbrauch: '609.0'
[mqtt  ] TRACE 2021/09/25 10:54:12 recv smarthomeng/pvanlage/leistung: '1126.0'
[mqtt  ] TRACE 2021/09/25 10:54:14 recv smarthomeng/pvanlage/prodleistung: '15131.364'
[mqtt  ] TRACE 2021/09/25 10:54:22 recv smarthomeng/pvanlage/leistung: '1127.0'
[site  ] DEBUG 2021/09/25 10:54:23 ----
[site  ] DEBUG 2021/09/25 10:54:23 pv power: 1127W
[site  ] DEBUG 2021/09/25 10:54:23 grid power: 609W
[site  ] DEBUG 2021/09/25 10:54:23 site power: 679W
[cache ] DEBUG 2021/09/25 10:54:23 pvPower: 1127
[cache ] DEBUG 2021/09/25 10:54:23 gridPower: 609
[cache ] DEBUG 2021/09/25 10:54:23 mode: pv
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835315987","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4102","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,59,0,0,13,0,0,0,137,100,0,1,86],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:23 charge power: 1370W
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:23 chargePower: 1370
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835316043","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4102","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,59,0,0,13,0,0,0,137,100,0,1,86],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:23 charge currents: [5.9 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:54:23 detected phases: 1p [5.9 0 0]A
[cache ] DEBUG 2021/09/25 10:54:23 chargeCurrents: [5.9 0 0]
[cache ] DEBUG 2021/09/25 10:54:23 activePhases: 1
[cache ] DEBUG 2021/09/25 10:54:23 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835316143","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4236","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,134,100,5,0,88],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[cache ] DEBUG 2021/09/25 10:54:23 chargedEnergy: 11.766666666666666
[cache ] DEBUG 2021/09/25 10:54:23 chargeDuration: 20s
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835316192","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4236","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,134,100,5,0,88],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:23 charger status: C
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:23 connected: true
[cache ] DEBUG 2021/09/25 10:54:23 charging: true
[cache ] DEBUG 2021/09/25 10:54:23 enabled: false
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835316237","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4236","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,134,100,5,0,88],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:23 vehicle soc: 42%
[lp-1  ] DEBUG 2021/09/25 10:54:23 vehicle range: 174km
[cache ] DEBUG 2021/09/25 10:54:23 vehicleSoc: 42
[go-e  ] TRACE 2021/09/25 10:54:23 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:23 chargeRemainingDuration: 13h58m37.2412529s
[cache ] DEBUG 2021/09/25 10:54:23 range: 174
[go-e  ] TRACE 2021/09/25 10:54:23 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835316288","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.375],"dws":"4236","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,134,100,5,0,88],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] WARN 2021/09/25 10:54:23 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:54:23 timerSet: false
[cache ] DEBUG 2021/09/25 10:54:23 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:54:23 max charge current: 0A = 0A + -2.95A (679W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:54:23 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:54:23 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:54:23 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:54:23 timerProjectedEnd: 2021-09-25 10:54:00 +0200 CEST
[mqtt  ] TRACE 2021/09/25 10:54:23 recv smarthomeng/edl21/gesamt: '2866.8798828125'
[mqtt  ] TRACE 2021/09/25 10:54:23 recv smarthomeng/edl21/aktverbrauch: '573.0'
[mqtt  ] TRACE 2021/09/25 10:54:24 recv smarthomeng/pvanlage/prodleistung: '15131.367'
[mqtt  ] TRACE 2021/09/25 10:54:32 recv smarthomeng/pvanlage/leistung: '1139.0'
[mqtt  ] TRACE 2021/09/25 10:54:34 recv smarthomeng/pvanlage/prodleistung: '15131.37'
[mqtt  ] TRACE 2021/09/25 10:54:35 recv smarthomeng/edl21/aktverbrauch: '606.0'
[mqtt  ] TRACE 2021/09/25 10:54:42 recv smarthomeng/pvanlage/leistung: '1149.0'
[site  ] DEBUG 2021/09/25 10:54:43 ----
[site  ] DEBUG 2021/09/25 10:54:43 pv power: 1149W
[site  ] DEBUG 2021/09/25 10:54:43 grid power: 606W
[site  ] DEBUG 2021/09/25 10:54:43 site power: 676W
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:43 pvPower: 1149
[cache ] DEBUG 2021/09/25 10:54:43 gridPower: 606
[cache ] DEBUG 2021/09/25 10:54:43 mode: pv
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835335987","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6813","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,0,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:43 charge power: 1360W
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:43 chargePower: 1360
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835336031","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6813","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,0,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:43 charge currents: [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:54:43 chargeCurrents: [5.8 0 0]
[lp-1  ] DEBUG 2021/09/25 10:54:43 detected phases: 1p [5.8 0 0]A
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:43 activePhases: 1
[cache ] DEBUG 2021/09/25 10:54:43 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835336092","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6813","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,226,227,1,58,0,0,13,0,0,0,136,100,0,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[cache ] DEBUG 2021/09/25 10:54:43 chargedEnergy: 18.925
[cache ] DEBUG 2021/09/25 10:54:43 chargeDuration: 40s
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835336157","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6950","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,136,100,1,1,84],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:43 charger status: C
[cache ] DEBUG 2021/09/25 10:54:43 connected: true
[cache ] DEBUG 2021/09/25 10:54:43 charging: true
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:54:43 enabled: false
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835336203","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6950","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,136,100,1,1,84],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:54:43 vehicle soc: 42%
[lp-1  ] DEBUG 2021/09/25 10:54:43 vehicle range: 174km
[cache ] DEBUG 2021/09/25 10:54:43 vehicleSoc: 42
[cache ] DEBUG 2021/09/25 10:54:43 chargeRemainingDuration: 13h58m37.241376434s
[cache ] DEBUG 2021/09/25 10:54:43 range: 174
[go-e  ] TRACE 2021/09/25 10:54:43 GET http://192.168.xxx.xxx/status
[go-e  ] TRACE 2021/09/25 10:54:43 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211054","rbc":"161","rbt":"835336255","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.875,23.25],"dws":"6950","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,226,1,58,0,0,13,0,0,0,136,100,1,1,84],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] WARN 2021/09/25 10:54:43 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:54:43 timerSet: false
[cache ] DEBUG 2021/09/25 10:54:43 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:54:43 max charge current: 0A = 0A + -2.94A (676W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:54:43 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:54:43 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:54:43 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:54:43 timerProjectedEnd: 2021-09-25 10:55:00 +0200 CEST
[mqtt  ] TRACE 2021/09/25 10:54:44 recv smarthomeng/pvanlage/prodleistung: '15131.374'
[mqtt  ] TRACE 2021/09/25 10:54:48 recv smarthomeng/edl21/aktverbrauch: '568.0'
[mqtt  ] TRACE 2021/09/25 10:54:52 recv smarthomeng/pvanlage/leistung: '1166.0'
[mqtt  ] TRACE 2021/09/25 10:54:54 recv smarthomeng/pvanlage/prodleistung: '15131.377'
[mqtt  ] TRACE 2021/09/25 10:54:58 recv smarthomeng/edl21/aktverbrauch: '572.0'
[mqtt  ] TRACE 2021/09/25 10:55:02 recv smarthomeng/pvanlage/leistung: '1194.0'
[site  ] DEBUG 2021/09/25 10:55:03 ----
[site  ] DEBUG 2021/09/25 10:55:03 pv power: 1194W
[site  ] DEBUG 2021/09/25 10:55:03 grid power: 572W
[site  ] DEBUG 2021/09/25 10:55:03 site power: 642W
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 pvPower: 1194
[cache ] DEBUG 2021/09/25 10:55:03 gridPower: 572
[cache ] DEBUG 2021/09/25 10:55:03 mode: pv
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835355997","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9530","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,58,0,0,13,0,0,0,136,100,10,0,83],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:55:03 charge power: 1360W
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 chargePower: 1360
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1084
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835356045","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9530","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,58,0,0,13,0,0,0,136,100,10,0,83],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:55:03 charge currents: [5.8 0 0]A
[lp-1  ] DEBUG 2021/09/25 10:55:03 detected phases: 1p [5.8 0 0]A
[cache ] DEBUG 2021/09/25 10:55:03 chargeCurrents: [5.8 0 0]
[cache ] DEBUG 2021/09/25 10:55:03 activePhases: 1
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 chargeCurrent: 0
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835356156","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9667","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,59,0,0,13,0,0,0,137,100,3,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[cache ] DEBUG 2021/09/25 10:55:03 chargedEnergy: 26.852777777777778
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 chargeDuration: 1m0s
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835356212","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9667","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,59,0,0,13,0,0,0,137,100,3,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:55:03 charger status: C
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 connected: true
[cache ] DEBUG 2021/09/25 10:55:03 charging: true
[cache ] DEBUG 2021/09/25 10:55:03 enabled: false
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835356258","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9667","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,59,0,0,13,0,0,0,137,100,3,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] DEBUG 2021/09/25 10:55:03 vehicle soc: 42%
[lp-1  ] DEBUG 2021/09/25 10:55:03 vehicle range: 174km
[go-e  ] TRACE 2021/09/25 10:55:03 GET http://192.168.xxx.xxx/status
[cache ] DEBUG 2021/09/25 10:55:03 vehicleSoc: 42
[cache ] DEBUG 2021/09/25 10:55:03 chargeRemainingDuration: 13h58m37.241376386s
[cache ] DEBUG 2021/09/25 10:55:03 range: 174
[go-e  ] TRACE 2021/09/25 10:55:03 
GET /status HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 1083
Access-Control-Allow-Origin: *
Content-Type: application/json

{"version":"B","tme":"2509211055","rbc":"161","rbt":"835356304","car":"2","amx":"6","amp":"6","err":"0","ast":"0","alw":"1","stp":"0","cbl":"32","pha":"57","fsp":"1","tma":[17.75,23.125],"dws":"9667","dwo":"180","adi":"1","uby":"0","eto":"370","wst":"3","fwv":"051.4","nrg":[226,227,227,1,59,0,0,13,0,0,0,137,100,3,0,85],"sse":"060435","wss":"FRITZ!Box 7490 K","wke":"********","wen":"1","cdi":"1","tof":"101","tds":"1","lbr":"255","aho":"0","afi":"6","azo":"0","ama":"16","al1":"6","al2":"10","al3":"12","al4":"14","al5":"16","cid":"255","cch":"65535","cfi":"65280","lse":"1","ust":"2","wak":"********","r1x":"2","dto":"0","nmo":"0","sch":"AAAAAAAAAAAAAAAA","sdp":"0","eca":"0","ecr":"0","ecd":"0","ec4":"0","ec5":"0","ec6":"0","ec7":"0","ec8":"0","ec9":"0","ec1":"0","rca":"1","rcr":"","rcd":"","rc4":"","rc5":"","rc6":"","rc7":"","rc8":"","rc9":"","rc1":"","rna":"User 1","rnm":"User 2","rne":"User 3","rn4":"User 4","rn5":"User 5","rn6":"User 6","rn7":"User 7","rn8":"User 8","rn9":"User 9","rn1":"User 10","loe":0,"lot":32,"lom":6,"lop":50,"log":"","lof":0,"loa":0,"lch":835283}
[lp-1  ] WARN 2021/09/25 10:55:03 charger logic error: disabled but charging
[cache ] DEBUG 2021/09/25 10:55:03 timerSet: false
[cache ] DEBUG 2021/09/25 10:55:03 timerActive: true
[lp-1  ] DEBUG 2021/09/25 10:55:03 max charge current: 0A = 0A + -2.79A (642W @ 1p)
[lp-1  ] DEBUG 2021/09/25 10:55:03 reset pv enable timer: 1m0s
[lp-1  ] DEBUG 2021/09/25 10:55:03 pv enable timer: keep disabled
[lp-1  ] DEBUG 2021/09/25 10:55:03 pv max charge current: 0A
[cache ] DEBUG 2021/09/25 10:55:03 timerProjectedEnd: 2021-09-25 10:55:00 +0200 CEST
[mqtt  ] TRACE 2021/09/25 10:55:04 recv smarthomeng/pvanlage/prodleistung: '15131.38'
```
PaddyX: 
> 
> Kann ich im syslog irgendwie sehen, ob die v2-api überhaupt richtig erkannt wurde?
> 

Ich hab hierzu nichts gefunden. Schalte doch in der go-e APP einfach die API V1 fest aus. Dann bleibt ja nur noch die V2 übrig. So habe ich getestet 
msome: In der App die V1 deaktivieren. Klar, soo einfach. EVCC hatte die V2 wirklich schon benutzt. 
Jetzt habe ich auch gerade bei go-e die Doku gefunden, man sieht es an der URL. GET /api/status ist v2.
PaddyX: Noch eine Auffälligkeit. Im Modus "Sofort" und dreiphasigen Laden, erkennt evcc im API v1 korrekt die 11kW Leistung. Bei der API v2 ist er der Meinung, es wird nur 1phasig geladen. Entsprechend ist die Anzeige nicht korrekt.
msome: Diese falsche Leistungserkennung könnte daher kommen, dass der Modus 1p/3p beim Statusrequest gar nicht abgeholt wird?
Laut APIv2 Doku ist es das Feld "fsp" true=1p, false=3p (gerade auch ausprobiert, die Doku stimmt).
Laut Trace-Log wird aber fsp nicht vom Charger angefordert: 
aktuell: GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards
getestet: GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards,**fsp**
andig: > Noch eine Auffälligkeit. Im Modus "Sofort" und dreiphasigen Laden, erkennt evcc im API v1 korrekt die 11kW Leistung. Bei der API v2 ist er der Meinung, es wird nur 1phasig geladen.

Logfile mit TRACE? Ich muss den HTTP Request+Antwort sehen!!
andig: > Diese falsche Leistungserkennung könnte daher kommen

Nein, bitte nicht rätselraten. Logfile!
andig: Für die Erkennung der Phasen sind die Ströme ausschlaggebend- die stehen in `nrg`.
andig: > "nrg":[226,226,227,1,59,0,0,13,0,0,0,137,100,0,1,86]

Sind 5,9A auf L2, L1 und L3 sind tot
PaddyX: > Für die Erkennung der Phasen sind die Ströme ausschlaggebend- die stehen in `nrg`.

@andig Erstmal vielen Dank für deinen unermüdlichen Fleiß evcc und die Anbindung der Hardware zu verbessern. Schau mal hier. Hoffe das hilft weiter Modus "PV" dreiphasig:

```
[lp-1  ] DEBUG 2021/09/25 12:14:52 charger status: C
[cache ] DEBUG 2021/09/25 12:14:52 connected: true
[cache ] DEBUG 2021/09/25 12:14:52 charging: true
[cache ] DEBUG 2021/09/25 12:14:52 enabled: true
[lp-1  ] DEBUG 2021/09/25 12:14:52 vehicle soc: 52%
[lp-1  ] DEBUG 2021/09/25 12:14:52 vehicle range: 217km
[cache ] DEBUG 2021/09/25 12:14:52 vehicleSoc: 52
[cache ] DEBUG 2021/09/25 12:14:52 chargeRemainingDuration: 3h6m39.999997493s
[cache ] DEBUG 2021/09/25 12:14:52 range: 217
[go-e  ] TRACE 2021/09/25 12:14:52 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[go-e  ] TRACE 2021/09/25 12:14:52 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

242
{"alw":true,"eto":44120,"car":2,"wh":7119.302,"trx":null,"nrg":[226,227,227,0,5.9,6.2,5.9,1300,1400,1300,0,4190,100,100,100,10],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/25 12:14:52 max charge current: 6.74A = 6A + 0.743A (-171W @ 1p)
[lp-1  ] DEBUG 2021/09/25 12:14:52 pv max charge current: 6.74A
[cache ] DEBUG 2021/09/25 12:14:52 timerSet: false
[go-e  ] TRACE 2021/09/25 12:14:52 GET http://192.168.xxx.xxx/api/set?amp=6
[cache ] DEBUG 2021/09/25 12:14:52 timerActive: true
[cache ] DEBUG 2021/09/25 12:14:52 timerProjectedEnd: 2021-09-25 12:15:00 +0200 CEST
[go-e  ] TRACE 2021/09/25 12:14:52 
GET /api/set?amp=6 HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 12
Access-Control-Allow-Origin: *
Content-Type: text/plain

{"amp":true}
[lp-1  ] DEBUG 2021/09/25 12:14:52 max charge current: 6A
[cache ] DEBUG 2021/09/25 12:14:52 chargeCurrent: 6
[mqtt  ] TRACE 2021/09/25 12:14:55 recv smarthomeng/pvanlage/leistung: '4645'
[mqtt  ] TRACE 2021/09/25 12:14:56 recv smarthomeng/edl21/aktverbrauch: '-312.0'
[mqtt  ] TRACE 2021/09/25 12:14:57 recv smarthomeng/pvanlage/prodleistung: '15135.663'
[mqtt  ] TRACE 2021/09/25 12:15:05 recv smarthomeng/pvanlage/leistung: '4561'
[mqtt  ] TRACE 2021/09/25 12:15:07 recv smarthomeng/pvanlage/prodleistung: '15135.676'
[mqtt  ] TRACE 2021/09/25 12:15:08 recv smarthomeng/edl21/aktverbrauch: '-203.0'
[site  ] DEBUG 2021/09/25 12:15:12 ----
[site  ] DEBUG 2021/09/25 12:15:12 pv power: 4561W
[site  ] DEBUG 2021/09/25 12:15:12 grid power: -203W
[site  ] DEBUG 2021/09/25 12:15:12 site power: -133W
[lp-1  ] DEBUG 2021/09/25 12:15:12 charge power: 1380W
[lp-1  ] DEBUG 2021/09/25 12:15:12 detected phases: 1p (6.0A @ 1380W)
[cache ] DEBUG 2021/09/25 12:15:12 pvPower: 4561
[cache ] DEBUG 2021/09/25 12:15:12 gridPower: -203
[cache ] DEBUG 2021/09/25 12:15:12 mode: pv
[cache ] DEBUG 2021/09/25 12:15:12 chargePower: 1380
```


andig: Gleiches Problem: 

> "nrg":[226,226,227,1,59,0,0,13,0,0,0,137,100,0,1,86]

Nur auf L2 ist Strom, also 1p. evcc funktioniert hier richtig.
PaddyX: > Gleiches Problem:
> 
> > "nrg":[226,226,227,1,59,0,0,13,0,0,0,137,100,0,1,86]
> 
> Nur auf L1 ist Strom (5,9A), also 1p. evcc funktioniert hier richtig.

??? Reden wir vom gleichen, Log? Bei mir:

`"nrg":[226,227,227,0,5.9,6.2,5.9,1300,1400,1300,0,4190,100,100,100,10]`

nach meiner Leseart ergibt das ==> 5.9A, 6.2A und 5.9 A

API V2 Doku sagt zu nrg:

```
nrg | R | array | Status | energy array, U (L1, L2, L3, N), I (L1, L2, L3), P (L1, L2, L3, N, Total), pf (L1, L2, L3, N)
-- | -- | -- | -- | --
```






andig: Du hast recht beim v2 API:

	if len(g.Nrg) == 16 {
		return g.Nrg[4], g.Nrg[5], g.Nrg[6]
	}

Jetzt wundere ich mich auch:

> "nrg":[226,227,227,0,5.9,6.2,5.9
> detected phases: 1p (6.0A @ 1380W)

Kannst Du mir evtl (cpuidle@gmx.de) mal Zugriff auf Deinen Charger geben (http oder ssh)?
andig: @PaddyX hättest Du sonst nochmal ein volles log ab start bis Phasenerkennung:

```
level: debug
levels:
  mqtt: error
  cache: trace
  go-e: trace
```

PaddyX: > @PaddyX hättest Du sonst nochmal ein volles log ab start bis Phasenerkennung:
> 
> ```
> level: debug
> levels:
>   mqtt: error
>   cache: trace
>   go-e: trace
> ```

Mein Auto ist gerade leider nun ein paar Stunden unterwegs :-(. Melde mich später nochmal.
msome: > Für die Erkennung der Phasen sind die Ströme ausschlaggebend- die stehen in `nrg`.

Bei mir wird nach wie vor 4.1kW Ladeleistung angezeigt.
Der go-e zeigt nur 1,43 kW. 
Ich habe auch noch einen Zähler vor den Ladepunkten, dieser Zähler zeigt 1,35kW an und bestätigt die komplette Leistung wird auf einer Phase gezogen.

Also bestätigt, 1p ist aktiv. Wegen min+pv (+Inselbetrieb) läuft der Charger auf 6A.

Logfile sagt aber:
[lp-1  ] DEBUG 2021/09/25 12:51:26 detected phases: 3p (6.0A @ 4140W)
[log_20210925.txt](https://github.com/evcc-io/evcc/files/7229616/log_20210925.txt)

andig: > Also bestätigt, 1p ist aktiv. 

Das ist auch richtig:

> "nrg":[234,231,227,4,0,0,0,0,0,0,0,0,0,0,0,0]

Solange nix erkannt werden kann- hier sind alle Phasen 0- bleibt der alte Wert.

Ich höre an der Stelle auf zu suchen. Wir brauchen einen Fall, wo *während* des Ladens die Phasen falsch erkannt werden. Dann ist die Frage ob `nrg` korrekt ist. Falls nein -> Fehler bei GoE. Falls ja -> evcc und ich brauche etwas zum reproduzieren.

Viel Spass bei der Suche...
msome: > Viel Spass bei der Suche...

Moment, nicht so schnell. Der Log ist natürlich während des Ladevorgangs.

Es sind 2 Ladepunkte im Log. Nur einer davon ist aktiv.
10.11.12.189: "nrg":[234,231,227,4,**0,0,0**,0,0,0,0,0,0,0,0,0]
10.11.12.161: "nrg":[228,232,234,4,**6.1,0,0**,1400,0,0,0,1450,100,10,7,96]

Der eine (erste in der Konfig) zeigt 6.1 / 0 / 0 A an.
andig: Es nutzt ja nix- solange ichs nicht reproduzieren kann kann ichs nicht fixen :(
andig: @msome Dein Log:

> detected phases: 3p (6.0A @ 4140W)

D.h. bei 6A werden 4kW gezogen. Also 3p. Dabei sieht evcc aus irgendeinem Grund keine gemessenen Ströme. Wenn Du mit per SSH oder VSCode Remote Session mal Zugang geben willst sag Bescheid...
andig: @PaddyX den `logic error` hab ich grad behoben. Die Abfrage im v1 API ob der Charger "enabled" ist war falsch rum.
PaddyX: 
> 
> Kannst Du mir evtl ([cpuidle@gmx.de](mailto:cpuidle@gmx.de)) mal Zugriff auf Deinen Charger geben (http oder ssh)?

Sie haben Post :-).

andig: Fehler gefunden, stay tuned!
PaddyX: > @PaddyX den `logic error` hab ich grad behoben. Die Abfrage im v1 API ob der Charger "enabled" ist war falsch rum.

Top. Sync-Fehlermeldungen sind weg.
PaddyX: > Habe gestern Abend ein Build erstellt und eben mal getestet. Ich bekomme zyklisch (ca. alle 30 Minuten) folgende Timeout-Meldung:
> 
> `evcc[32202]: [lp-1 ] ERROR 2021/09/24 15:06:25 charger: Get "http://192.xxx.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)`
> 
> Das war mit der API V1 bisher nicht so. 





> > Das war mit der API V1 bisher nicht so. Phasenumschaltung von 1 nach 3 durch Umschaltung Moduls "PV" nach "Sofort" funktioniert. Wieder zurück nicht. Das will ich morgen noch weiter austesten und entsprechende Logs liefern.
> 
> Fehler war in master und ist hier jetzt behoben.
> 
> > Ich bekomme zyklisch (ca. alle 30 Minuten) folgende Timeout-Meldung:
> 
> Da antwortet der Go-E nicht mehr -> Ticket da...

Es kommt auch seltener mit der API V1. Ich schiebe es mal auf meine schwache WLAN-Verbindung. 
sebnaf: V1 läuft bei mir seit 10 Tagen ohne irgendeine Meldung - bei mehreren Ladezyklen pro Tag. 
andig: Danke @PaddyX ihr könntet es jetzt nochmal probieren
PaddyX: > Danke @PaddyX ihr könntet es jetzt nochmal probieren

Ich kann auf Anhieb nur das gleiche Verhalten feststellen. Er lädt dreiphasig, meint aber nur 1 Phase wird geladen.

```
log: debug
levels:
  mqtt: error
  cache: trace
  go-e: trace
  core: info
  lp-1: debug
  lp-2: debug
```

```
/evcc -c evcc.yaml 
[main  ] INFO 2021/09/26 09:39:55 evcc 0.64 (a14fa5b)
[main  ] INFO 2021/09/26 09:39:55 using config file evcc.yaml
[main  ] INFO 2021/09/26 09:39:55 listening at 0.0.0.0:7070
[go-e  ] TRACE 2021/09/26 09:39:55 GET http://192.168.xxx.xxx/api/status?filter=alw
[go-e  ] TRACE 2021/09/26 09:39:55 
GET /api/status?filter=alw HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

c
{"alw":true}
0
[cache ] DEBUG 2021/09/26 09:39:57 sponsor: PaddyX
[cache ] DEBUG 2021/09/26 09:39:57 title: Carport
[cache ] DEBUG 2021/09/26 09:39:57 minCurrent: 6
[cache ] DEBUG 2021/09/26 09:39:57 maxCurrent: 16
[cache ] DEBUG 2021/09/26 09:39:57 phases: 1
[cache ] DEBUG 2021/09/26 09:39:57 activePhases: 1
[cache ] DEBUG 2021/09/26 09:39:57 hasVehicle: true
[cache ] DEBUG 2021/09/26 09:39:57 mode: pv
[cache ] DEBUG 2021/09/26 09:39:57 targetSoC: 80
[cache ] DEBUG 2021/09/26 09:39:57 minSoC: 30
[lp-1  ] INFO 2021/09/26 09:39:57 vehicle updated: unknown -> Enyaq
[cache ] DEBUG 2021/09/26 09:39:57 vehiclePresent: true
[cache ] DEBUG 2021/09/26 09:39:57 vehicleTitle: Enyaq
[cache ] DEBUG 2021/09/26 09:39:57 vehicleCapacity: 62
[go-e  ] TRACE 2021/09/26 09:39:57 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[go-e  ] TRACE 2021/09/26 09:39:57 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

23d
{"alw":true,"eto":66635,"car":2,"wh":21001.97,"trx":null,"nrg":[229,228,228,1,6,6,5.9,1400,1400,1300,0,4170,100,100,100,8],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[go-e  ] TRACE 2021/09/26 09:39:57 GET http://192.168.xxx.xxx/api/set?amp=6
[go-e  ] TRACE 2021/09/26 09:39:57 
GET /api/set?amp=6 HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Content-Length: 12
Access-Control-Allow-Origin: *
Content-Type: text/plain

{"amp":true}
[lp-1  ] DEBUG 2021/09/26 09:39:57 max charge current: 6A
[site  ] INFO 2021/09/26 09:39:57 site config:
[site  ] INFO 2021/09/26 09:39:57   meters:    grid ✓ pv ✓ battery ✗
[site  ] INFO 2021/09/26 09:39:57     grid:    power ✓ energy ✓ currents ✗
[cache ] DEBUG 2021/09/26 09:39:57 chargeCurrent: 6
[cache ] DEBUG 2021/09/26 09:39:57 siteTitle: Klaus Auf Schiels
[cache ] DEBUG 2021/09/26 09:39:57 gridConfigured: true
[cache ] DEBUG 2021/09/26 09:39:57 pvConfigured: true
[site  ] INFO 2021/09/26 09:39:57     pv 0:    power ✓ energy ✓ currents ✗
[lp-1  ] INFO 2021/09/26 09:39:57 loadpoint 1:
[lp-1  ] INFO 2021/09/26 09:39:57   mode:      pv
[lp-1  ] INFO 2021/09/26 09:39:57   charger:   power ✗ energy ✓ currents ✗ timer ✗
[lp-1  ] INFO 2021/09/26 09:39:57   meters:    charge ✗
[lp-1  ] INFO 2021/09/26 09:39:57   vehicles:  ✓
[lp-1  ] INFO 2021/09/26 09:39:57     car 0:   range ✓ finish ✓ status ✓ climate ✗
[site  ] DEBUG 2021/09/26 09:39:57 ----
[cache ] DEBUG 2021/09/26 09:39:57 batteryConfigured: false
[cache ] DEBUG 2021/09/26 09:39:57 chargeConfigured: false
[site  ] DEBUG 2021/09/26 09:40:05 pv power: 445W
[cache ] DEBUG 2021/09/26 09:40:05 pvPower: 445
[site  ] DEBUG 2021/09/26 09:40:16 grid power: 3942W
[site  ] DEBUG 2021/09/26 09:40:16 site power: 4012W
[lp-1  ] DEBUG 2021/09/26 09:40:16 charge power: 0W
[cache ] DEBUG 2021/09/26 09:40:16 gridPower: 3942
[cache ] DEBUG 2021/09/26 09:40:16 mode: pv
[cache ] DEBUG 2021/09/26 09:40:16 chargePower: 0
[go-e  ] TRACE 2021/09/26 09:40:16 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:16 chargeCurrent: 6
[cache ] DEBUG 2021/09/26 09:40:16 chargedEnergy: 0
[cache ] DEBUG 2021/09/26 09:40:16 chargeDuration: 0s
[go-e  ] TRACE 2021/09/26 09:40:17 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

241
{"alw":true,"eto":66659,"car":2,"wh":21025.2,"trx":null,"nrg":[228,228,228,0,5.9,6.2,5.9,1300,1400,1300,0,4200,100,100,100,16],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/26 09:40:17 charger status: C
[lp-1  ] INFO 2021/09/26 09:40:17 start charging ->
[cache ] DEBUG 2021/09/26 09:40:17 connectedDuration: 0s
[cache ] DEBUG 2021/09/26 09:40:17 chargeCurrent: 6
[cache ] DEBUG 2021/09/26 09:40:17 connected: true
[cache ] DEBUG 2021/09/26 09:40:17 charging: true
[go-e  ] TRACE 2021/09/26 09:40:17 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:17 enabled: true
[go-e  ] TRACE 2021/09/26 09:40:17 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

241
{"alw":true,"eto":66660,"car":2,"wh":21026.37,"trx":null,"nrg":[228,227,229,0,5.9,5.9,5.9,1300,1300,1300,0,4140,100,100,100,9],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/26 09:40:18 vehicle soc: 72%
[lp-1  ] DEBUG 2021/09/26 09:40:18 vehicle range: 311km
[cache ] DEBUG 2021/09/26 09:40:18 vehicleSoc: 72
[cache ] DEBUG 2021/09/26 09:40:18 chargeRemainingDuration: -1ns
[go-e  ] TRACE 2021/09/26 09:40:18 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:18 chargeRemainingEnergy: 5511.111111111111
[cache ] DEBUG 2021/09/26 09:40:18 range: 311
[go-e  ] TRACE 2021/09/26 09:40:18 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

242
{"alw":true,"eto":66661,"car":2,"wh":21027.52,"trx":null,"nrg":[228,228,228,0,5.9,5.9,5.9,1300,1300,1300,0,4160,100,100,100,14],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/26 09:40:18 target charging active for 0001-01-01 00:00:00 +0000 UTC: projected 2021-09-26 09:40:00 +0200 CEST (0s remaining)
[lp-1  ] DEBUG 2021/09/26 09:40:18 max charge current: 0A = 6A + -17.4A (4012W @ 1p)
[lp-1  ] DEBUG 2021/09/26 09:40:18 site power 4012W >= disable threshold 200W
[lp-1  ] DEBUG 2021/09/26 09:40:18 start pv disable timer: 10m0s
[lp-1  ] DEBUG 2021/09/26 09:40:18 pv disable timer remaining: 10m0s
[lp-1  ] DEBUG 2021/09/26 09:40:18 pv enable timer: keep enabled
[lp-1  ] DEBUG 2021/09/26 09:40:18 pv max charge current: 6A
[site  ] DEBUG 2021/09/26 09:40:18 ----
[site  ] DEBUG 2021/09/26 09:40:18 pv power: 440W
[cache ] DEBUG 2021/09/26 09:40:18 timerSet: false
[site  ] DEBUG 2021/09/26 09:40:18 grid power: 3942W
[cache ] DEBUG 2021/09/26 09:40:18 timerActive: true
[site  ] DEBUG 2021/09/26 09:40:18 site power: 4012W
[lp-1  ] DEBUG 2021/09/26 09:40:18 charge power: 1380W
[cache ] DEBUG 2021/09/26 09:40:18 timerProjectedEnd: 2021-09-26 09:40:00 +0200 CEST
[cache ] DEBUG 2021/09/26 09:40:18 pvPower: 440
[cache ] DEBUG 2021/09/26 09:40:18 gridPower: 3942
[cache ] DEBUG 2021/09/26 09:40:18 mode: pv
[lp-1  ] DEBUG 2021/09/26 09:40:18 detected phases: 1p (6.0A @ 1380W)
[cache ] DEBUG 2021/09/26 09:40:18 chargePower: 1380
[cache ] DEBUG 2021/09/26 09:40:18 activePhases: 1
[cache ] DEBUG 2021/09/26 09:40:18 chargeCurrent: 6
[go-e  ] TRACE 2021/09/26 09:40:18 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:18 chargedEnergy: 0.4291798405333333
[cache ] DEBUG 2021/09/26 09:40:18 chargeDuration: 1s
[go-e  ] TRACE 2021/09/26 09:40:19 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

242
{"alw":true,"eto":66661,"car":2,"wh":21027.52,"trx":null,"nrg":[228,228,228,0,5.9,5.9,5.9,1300,1300,1300,0,4160,100,100,100,14],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/26 09:40:19 charger status: C
[go-e  ] TRACE 2021/09/26 09:40:19 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:19 connected: true
[cache ] DEBUG 2021/09/26 09:40:19 charging: true
[cache ] DEBUG 2021/09/26 09:40:19 enabled: true
[go-e  ] TRACE 2021/09/26 09:40:19 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

242
{"alw":true,"eto":66661,"car":2,"wh":21027.52,"trx":null,"nrg":[228,228,228,0,5.9,5.9,5.9,1300,1300,1300,0,4160,100,100,100,14],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[lp-1  ] DEBUG 2021/09/26 09:40:19 vehicle soc: 72%
[lp-1  ] DEBUG 2021/09/26 09:40:19 vehicle range: 311km
[cache ] DEBUG 2021/09/26 09:40:19 vehicleSoc: 72
[cache ] DEBUG 2021/09/26 09:40:19 chargeRemainingDuration: 47m8.571427338s
[go-e  ] TRACE 2021/09/26 09:40:19 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:19 range: 311
[go-e  ] TRACE 2021/09/26 09:40:19 
GET /api/status?filter=alw,car,eto,nrg,wh,trx,cards HTTP/1.1
Host: 192.168.xxx.xxx
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip

HTTP/1.1 200 OK
Connection: close
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Content-Type: application/json

242
{"alw":true,"eto":66661,"car":2,"wh":21027.52,"trx":null,"nrg":[228,228,228,0,5.9,5.9,5.9,1300,1300,1300,0,4160,100,100,100,14],"cards":[{"name":"User 1","energy":0,"cardId":true},{"name":"User 2","energy":0,"cardId":false},{"name":"User 3","energy":0,"cardId":false},{"name":"User 4","energy":0,"cardId":false},{"name":"User 5","energy":0,"cardId":false},{"name":"User 6","energy":0,"cardId":false},{"name":"User 7","energy":0,"cardId":false},{"name":"User 8","energy":0,"cardId":false},{"name":"User 9","energy":0,"cardId":false},{"name":"User 10","energy":0,"cardId":false}]}
0
[cache ] DEBUG 2021/09/26 09:40:19 timerSet: false
[cache ] DEBUG 2021/09/26 09:40:19 timerActive: true
[cache ] DEBUG 2021/09/26 09:40:19 timerProjectedEnd: 2021-09-26 09:40:00 +0200 CEST
[lp-1  ] DEBUG 2021/09/26 09:40:19 max charge current: 0A = 6A + -17.4A (4012W @ 1p)
[lp-1  ] DEBUG 2021/09/26 09:40:19 site power 4012W >= disable threshold 200W
[lp-1  ] DEBUG 2021/09/26 09:40:19 pv disable timer remaining: 10m0s
[lp-1  ] DEBUG 2021/09/26 09:40:19 pv enable timer: keep enabled
[lp-1  ] DEBUG 2021/09/26 09:40:19 pv max charge current: 6A
[site  ] DEBUG 2021/09/26 09:40:37 ----
[site  ] DEBUG 2021/09/26 09:40:37 pv power: 457W
[site  ] DEBUG 2021/09/26 09:40:37 grid power: 3953W
[site  ] DEBUG 2021/09/26 09:40:37 site power: 4023W
[lp-1  ] DEBUG 2021/09/26 09:40:37 charge power: 1380W
[lp-1  ] DEBUG 2021/09/26 09:40:37 detected phases: 1p (6.0A @ 1380W)
[cache ] DEBUG 2021/09/26 09:40:37 pvPower: 457
[cache ] DEBUG 2021/09/26 09:40:37 gridPower: 3953
[cache ] DEBUG 2021/09/26 09:40:37 mode: pv
[cache ] DEBUG 2021/09/26 09:40:37 chargePower: 1380
[cache ] DEBUG 2021/09/26 09:40:37 activePhases: 1
[cache ] DEBUG 2021/09/26 09:40:37 chargeCurrent: 6
[go-e  ] TRACE 2021/09/26 09:40:37 GET http://192.168.xxx.xxx/api/status?filter=alw,car,eto,nrg,wh,trx,cards
[cache ] DEBUG 2021/09/26 09:40:37 chargedEnergy: 7.646393526733333
[cache ] DEBUG 2021/09/26 09:40:37 chargeDuration: 20s
[go-e  ] TRACE 2021/09/26 09:40:39 
```

andig: Im lokalen Test werden jetzt alle Werte ausgegeben:

    evcc charger -c cfg/goe3.yaml --log trace

Damit sollte es jetzt hoffentlich auch bei Euch klappen!
PaddyX: > Im lokalen Test werden jetzt alle Werte ausgegeben:
> 
> ```
> evcc charger -c cfg/goe3.yaml --log trace
> ```
> 
> Damit sollte es jetzt hoffentlich auch bei Euch klappen!

Ja, die Anzeige stimmt jetzt. Perfekt. 
Das einzige was ich jetzt noch vermisse ist die automatische Phasenumschaltung zwischen "Sofort" und "Min+PV". 
andig: Die sollte jetzt auch gehen- Sponsortoken vorausgesetzt 👍🏻

Patch:
diff --git a/charger/go-e.go b/charger/go-e.go
index 317fa5f5..61888045 100644
--- a/charger/go-e.go
+++ b/charger/go-e.go
@@ -3,90 +3,29 @@ package charger
 import (
 	"errors"
 	"fmt"
-	"strings"
 	"time"
 
 	"github.com/evcc-io/evcc/api"
+	goe "github.com/evcc-io/evcc/charger/go-e"
 	"github.com/evcc-io/evcc/util"
-	"github.com/evcc-io/evcc/util/request"
+	"github.com/evcc-io/evcc/util/sponsor"
 )
 
 // https://go-e.co/app/api.pdf
-
-const goeCloud = "https://api.go-e.co"
-
-// goeCloudResponse is the cloud API response
-type goeCloudResponse struct {
-	Success *bool             `json:"success"` // only valid for cloud payload commands
-	Age     int               `json:"age"`
-	Error   string            `json:"error"` // only valid for cloud payload commands
-	Data    goeStatusResponse `json:"data"`
-}
-
-// goeStatusResponse is the API response if status not OK
-type goeStatusResponse struct {
-	Fwv string `json:"fwv"`        // firmware version - indicates local response
-	Car int    `json:"car,string"` // car status
-	Alw int    `json:"alw,string"` // allow charging
-	Amp int    `json:"amp,string"` // current [A]
-	Err int    `json:"err,string"` // error
-	Stp int    `json:"stp,string"` // stop state
-	Tmp int    `json:"tmp,string"` // temperature [°C]
-	Dws int    `json:"dws,string"` // energy [Ws]
-	Nrg []int  `json:"nrg"`        // voltage, current, power
-	Uby int    `json:"uby,string"` // unlocked_by
-	Rna string `json:"rna"`        // RFID 1
-	Rnm string `json:"rnm"`        // RFID 2
-	Rne string `json:"rne"`        // RFID 3
-	Rn4 string `json:"rn4"`        // RFID 4
-	Rn5 string `json:"rn5"`        // RFID 5
-	Rn6 string `json:"rn6"`        // RFID 6
-	Rn7 string `json:"rn7"`        // RFID 7
-	Rn8 string `json:"rn8"`        // RFID 8
-	Rn9 string `json:"rn9"`        // RFID 9
-	Rn1 string `json:"rn1"`        // RFID 10
-}
-
-func (g *goeStatusResponse) RFIDName() string {
-	switch g.Uby {
-	case 1:
-		return g.Rna
-	case 2:
-		return g.Rnm
-	case 3:
-		return g.Rne
-	case 4:
-		return g.Rn4
-	case 5:
-		return g.Rn5
-	case 6:
-		return g.Rn6
-	case 7:
-		return g.Rn7
-	case 8:
-		return g.Rn8
-	case 9:
-		return g.Rn9
-	case 10:
-		return g.Rn1
-	default:
-		return ""
-	}
-}
+// https://github.com/goecharger/go-eCharger-API-v1/
+// https://github.com/goecharger/go-eCharger-API-v2/
 
 // GoE charger implementation
 type GoE struct {
-	*request.Helper
-	uri, token string
-	cache      time.Duration
-	updated    time.Time
-	status     goeStatusResponse
+	api goe.API
 }
 
 func init() {
 	registry.Add("go-e", NewGoEFromConfig)
 }
 
+// go:generate go run ../cmd/tools/decorate.go -f decorateGoE -b *GoE -r api.Charger -t "api.MeterEnergy,TotalEnergy,func() (float64, error)" -t "api.ChargePhases,Phases1p3p,func(int) (error)"
+
 // NewGoEFromConfig creates a go-e charger from generic config
 func NewGoEFromConfig(other map[string]interface{}) (api.Charger, error) {
 	cc := struct {
@@ -94,99 +33,55 @@ func NewGoEFromConfig(other map[string]interface{}) (api.Charger, error) {
 		URI   string
 		Cache time.Duration
 	}{}
+
 	if err := util.DecodeOther(other, &cc); err != nil {
 		return nil, err
 	}
 
 	if cc.URI != "" && cc.Token != "" {
-		return nil, errors.New("go-e config: should only have one of uri/token")
+		return nil, errors.New("should only have one of uri/token")
 	}
 	if cc.URI == "" && cc.Token == "" {
-		return nil, errors.New("go-e config: must have one of uri/token")
+		return nil, errors.New("must have one of uri/token")
 	}
 
 	return NewGoE(cc.URI, cc.Token, cc.Cache)
 }
 
 // NewGoE creates GoE charger
-func NewGoE(uri, token string, cache time.Duration) (*GoE, error) {
-	c := &GoE{
-		Helper: request.NewHelper(util.NewLogger("go-e")),
-		uri:    strings.TrimRight(uri, "/"),
-		token:  strings.TrimSpace(token),
-	}
-
-	return c, nil
-}
-
-func (c *GoE) localResponse(function, payload string) (goeStatusResponse, error) {
-	var status goeStatusResponse
-
-	url := fmt.Sprintf("%s/%s", c.uri, function)
-	if payload != "" {
-		url += "?payload=" + payload
-	}
-
-	err := c.GetJSON(url, &status)
-	return status, err
-}
+func NewGoE(uri, token string, cache time.Duration) (api.Charger, error) {
+	c := &GoE{}
 
-func (c *GoE) cloudResponse(function, payload string) (goeStatusResponse, error) {
-	var status goeCloudResponse
+	log := util.NewLogger("go-e")
 
-	url := fmt.Sprintf("%s/%s?token=%s", goeCloud, function, c.token)
-	if payload != "" {
-		url += "&payload=" + payload
+	if token != "" {
+		c.api = goe.NewCloud(log, token, cache)
+	} else {
+		c.api = goe.NewLocal(log, uri)
 	}
 
-	err := c.GetJSON(url, &status)
-	if err == nil && status.Success != nil && !*status.Success {
-		err = errors.New(status.Error)
-	}
-
-	return status.Data, err
-}
-
-func (c *GoE) apiStatus() (status goeStatusResponse, err error) {
-	if c.token == "" {
-		return c.localResponse("status", "")
-	}
-
-	if time.Since(c.updated) >= c.cache {
-		status, err = c.cloudResponse("api_status", "")
-		if err == nil {
-			c.updated = time.Now()
-			c.status = status
+	if c.api.IsV2() {
+		var phases func(int) error
+		if sponsor.IsAuthorized() {
+			phases = c.phases1p3p
+		} else {
+			log.WARN.Println("automatic 1p3p phase switching requires sponsor token")
 		}
-	}
 
-	return c.status, err
-}
-
-// apiUpdate invokes either cloud or local api
-// goeStatusResponse is only valid for local api. Use Fwv if valid.
-func (c *GoE) apiUpdate(payload string) (goeStatusResponse, error) {
-	if c.token == "" {
-		return c.localResponse("mqtt", payload)
-	}
-
-	status, err := c.cloudResponse("api", payload)
-	if err == nil {
-		// cloud api sends partial response, don't store it as status
-		c.updated = time.Time{}
+		return decorateGoE(c, c.totalEnergy, phases), nil
 	}
 
-	return status, err
+	return c, nil
 }
 
 // Status implements the api.Charger interface
 func (c *GoE) Status() (api.ChargeStatus, error) {
-	status, err := c.apiStatus()
+	resp, err := c.api.Status()
 	if err != nil {
 		return api.StatusNone, err
 	}
 
-	switch status.Car {
+	switch car := resp.Status(); car {
 	case 1:
 		return api.StatusA, nil
 	case 2:
@@ -194,25 +89,18 @@ func (c *GoE) Status() (api.ChargeStatus, error) {
 	case 3, 4:
 		return api.StatusB, nil
 	default:
-		return api.StatusNone, fmt.Errorf("car unknown result: %d", status.Car)
+		return api.StatusNone, fmt.Errorf("car unknown result: %d", car)
 	}
 }
 
 // Enabled implements the api.Charger interface
 func (c *GoE) Enabled() (bool, error) {
-	status, err := c.apiStatus()
+	resp, err := c.api.Status()
 	if err != nil {
 		return false, err
 	}
 
-	switch status.Alw {
-	case 0:
-		return false, nil
-	case 1:
-		return true, nil
-	default:
-		return false, fmt.Errorf("alw unknown result: %d", status.Alw)
-	}
+	return resp.Enabled(), nil
 }
 
 // Enable implements the api.Charger interface
@@ -221,52 +109,87 @@ func (c *GoE) Enable(enable bool) error {
 	if enable {
 		b = 1
 	}
-	_, err := c.apiUpdate(fmt.Sprintf("alw=%d", b))
-	return err
+
+	param := map[bool]string{false: "alw", true: "frc"}[c.api.IsV2()]
+	if c.api.IsV2() {
+		b += 1
+	}
+
+	return c.api.Update(fmt.Sprintf("%s=%d", param, b))
 }
 
 // MaxCurrent implements the api.Charger interface
 func (c *GoE) MaxCurrent(current int64) error {
-	_, err := c.apiUpdate(fmt.Sprintf("amx=%d", current))
-	return err
+	param := map[bool]string{false: "amx", true: "amp"}[c.api.IsV2()]
+	return c.api.Update(fmt.Sprintf("%s=%d", param, current))
 }
 
 var _ api.Meter = (*GoE)(nil)
 
 // CurrentPower implements the api.Meter interface
 func (c *GoE) CurrentPower() (float64, error) {
-	status, err := c.apiStatus()
-	var power float64
-	if len(status.Nrg) == 16 {
-		power = float64(status.Nrg[11]) * 10
+	resp, err := c.api.Status()
+	if err != nil {
+		return 0, err
 	}
-	return power, err
+
+	return resp.CurrentPower(), err
 }
 
 var _ api.ChargeRater = (*GoE)(nil)
 
 // ChargedEnergy implements the api.ChargeRater interface
 func (c *GoE) ChargedEnergy() (float64, error) {
-	status, err := c.apiStatus()
-	energy := float64(status.Dws) / 3.6e5 // Deka-Watt-Seconds to kWh (100.000 == 0,277kWh)
-	return energy, err
+	resp, err := c.api.Status()
+	if err != nil {
+		return 0, err
+	}
+
+	return resp.ChargedEnergy(), err
 }
 
 var _ api.MeterCurrent = (*GoE)(nil)
 
 // Currents implements the api.MeterCurrent interface
 func (c *GoE) Currents() (float64, float64, float64, error) {
-	status, err := c.apiStatus()
-	if len(status.Nrg) == 16 {
-		return float64(status.Nrg[4]) / 10, float64(status.Nrg[5]) / 10, float64(status.Nrg[6]) / 10, nil
+	resp, err := c.api.Status()
+	if err != nil {
+		return 0, 0, 0, err
 	}
-	return 0, 0, 0, err
+
+	i1, i2, i3 := resp.Currents()
+
+	return i1, i2, i3, err
 }
 
 var _ api.Identifier = (*GoE)(nil)
 
 // Identify implements the api.Identifier interface
 func (c *GoE) Identify() (string, error) {
-	status, err := c.apiStatus()
-	return status.RFIDName(), err
+	resp, err := c.api.Status()
+	return resp.Identify(), err
+}
+
+// totalEnergy implements the api.MeterEnergy interface - v2 only
+func (c *GoE) totalEnergy() (float64, error) {
+	resp, err := c.api.Status()
+	if err != nil {
+		return 0, err
+	}
+
+	var val float64
+	if res, ok := resp.(*goe.StatusResponse2); ok {
+		val = res.TotalEnergy()
+	}
+
+	return val, err
+}
+
+// phases1p3p implements the api.ChargePhases interface - v2 only
+func (c *GoE) phases1p3p(phases int) error {
+	if phases == 3 {
+		phases = 2
+	}
+
+	return c.api.Update(fmt.Sprintf("psm=%d", phases))
 }
diff --git a/charger/go-e/api.go b/charger/go-e/api.go
new file mode 100644
index 00000000..df2c7a5b
--- /dev/null
+++ b/charger/go-e/api.go
@@ -0,0 +1,160 @@
+package goe
+
+import (
+	"errors"
+	"fmt"
+	"strings"
+	"time"
+
+	"github.com/evcc-io/evcc/util"
+	"github.com/evcc-io/evcc/util/request"
+)
+
+const CloudURI = "https://api.go-e.co"
+
+// Response is the v1 and v2 api response interface
+type Response interface {
+	Status() int
+	Enabled() bool
+	CurrentPower() float64
+	ChargedEnergy() float64
+	Currents() (float64, float64, float64)
+	Identify() string
+}
+
+type UpdateResponse map[string]interface{}
+
+type API interface {
+	IsV2() bool
+	Status() (Response, error)
+	Update(payload string) error
+}
+
+type LocalAPI struct {
+	*request.Helper
+	uri string
+	v2  bool
+}
+
+var _ API = (*LocalAPI)(nil)
+
+func NewLocal(log *util.Logger, uri string) *LocalAPI {
+	uri = strings.TrimRight(uri, "/")
+	uri = strings.TrimSuffix(uri, "/api")
+
+	api := &LocalAPI{
+		Helper: request.NewHelper(log),
+		uri:    uri,
+	}
+
+	api.upgradeV2()
+
+	return api
+}
+
+// upgradeV2 will switch to use the v2 api and revert if not available
+func (c *LocalAPI) upgradeV2() {
+	c.v2 = true // use v2 response struct
+
+	res := new(StatusResponse2)
+	err := c.response("api/status?filter=alw", &res)
+
+	if err == nil {
+		c.uri = c.uri + "/api"
+	} else {
+		c.v2 = false
+	}
+}
+
+// IsV2 returns v2 api usage
+func (c *LocalAPI) IsV2() bool {
+	return c.v2
+}
+
+// response returns a v1/v2 api response
+func (c *LocalAPI) response(partial string, res interface{}) error {
+	url := fmt.Sprintf("%s/%s", c.uri, partial)
+	return c.GetJSON(url, &res)
+}
+
+// Status reads a v1/v2 api response
+func (c *LocalAPI) Status() (Response, error) {
+	if c.v2 {
+		res := new(StatusResponse2)
+		err := c.response("status?filter=alw,car,eto,nrg,wh,trx,cards", &res)
+		return res, err
+	}
+
+	res := new(StatusResponse)
+	err := c.response("status", &res)
+	return res, err
+}
+
+// Update executes a v1/v2 api update and returns the response
+func (c *LocalAPI) Update(payload string) error {
+	res := new(UpdateResponse)
+
+	if c.v2 {
+		err := c.response(fmt.Sprintf("set?%s", payload), &res)
+		return err
+	}
+
+	err := c.response(fmt.Sprintf("mqtt?payload=%s", payload), &res)
+	return err
+}
+
+type cloud struct {
+	*request.Helper
+	token   string
+	cache   time.Duration
+	updated time.Time
+	status  Response
+}
+
+var _ API = (*cloud)(nil)
+
+func NewCloud(log *util.Logger, token string, cache time.Duration) API {
+	return &cloud{
+		Helper: request.NewHelper(log),
+		token:  token,
+		cache:  cache,
+	}
+}
+
+func (c *cloud) IsV2() bool {
+	return false
+}
+
+func (c *cloud) response(function, payload string) (*StatusResponse, error) {
+	var status CloudResponse
+
+	url := fmt.Sprintf("%s/%s?token=%s", CloudURI, function, c.token)
+	if payload != "" {
+		url += "&payload=" + payload
+	}
+
+	err := c.GetJSON(url, &status)
+	if err == nil && status.Success != nil && !*status.Success {
+		err = errors.New(status.Error)
+	}
+
+	return &status.Data, err
+}
+
+func (c *cloud) Status() (status Response, err error) {
+	if time.Since(c.updated) >= c.cache {
+		status, err = c.response("api_status", "")
+		if err == nil {
+			c.updated = time.Now()
+			c.status = status
+		}
+	}
+
+	return c.status, err
+}
+
+func (c *cloud) Update(payload string) error {
+	c.updated = time.Time{}
+	_, err := c.response("api", payload)
+	return err
+}
diff --git a/charger/go-e/types.go b/charger/go-e/types.go
new file mode 100644
index 00000000..b46b4769
--- /dev/null
+++ b/charger/go-e/types.go
@@ -0,0 +1,86 @@
+package goe
+
+// CloudResponse is the cloud API response
+type CloudResponse struct {
+	Success *bool // only valid for cloud payload commands
+	Age     int
+	Error   string // only valid for cloud payload commands
+	Data    StatusResponse
+}
+
+// StatusResponse is the API response if status not OK
+type StatusResponse struct {
+	Fwv string    `json:"fwv"`        // firmware version
+	Car int       `json:"car,string"` // car status
+	Alw int       `json:"alw,string"` // allow charging
+	Amp int       `json:"amp,string"` // current [A]
+	Err int       `json:"err,string"` // error
+	Stp int       `json:"stp,string"` // stop state
+	Tmp int       `json:"tmp,string"` // temperature [°C]
+	Dws int       `json:"dws,string"` // energy [Ws]
+	Nrg []float64 `json:"nrg"`        // voltage, current, power
+	Uby int       `json:"uby,string"` // unlocked_by
+	Rna string    `json:"rna"`        // RFID 1
+	Rnm string    `json:"rnm"`        // RFID 2
+	Rne string    `json:"rne"`        // RFID 3
+	Rn4 string    `json:"rn4"`        // RFID 4
+	Rn5 string    `json:"rn5"`        // RFID 5
+	Rn6 string    `json:"rn6"`        // RFID 6
+	Rn7 string    `json:"rn7"`        // RFID 7
+	Rn8 string    `json:"rn8"`        // RFID 8
+	Rn9 string    `json:"rn9"`        // RFID 9
+	Rn1 string    `json:"rn1"`        // RFID 10
+}
+
+func (g *StatusResponse) Status() int {
+	return g.Car
+}
+
+func (g *StatusResponse) Enabled() bool {
+	return g.Alw == 1
+}
+
+func (g *StatusResponse) CurrentPower() float64 {
+	if len(g.Nrg) == 16 {
+		return g.Nrg[11] * 10
+	}
+	return 0
+}
+
+func (g *StatusResponse) ChargedEnergy() float64 {
+	return float64(g.Dws) / 3.6e5 // Deka-Watt-Seconds to kWh (100.000 == 0,277kWh)
+}
+
+func (g *StatusResponse) Currents() (float64, float64, float64) {
+	if len(g.Nrg) == 16 {
+		return g.Nrg[4] / 10, g.Nrg[5] / 10, g.Nrg[6] / 10
+	}
+	return 0, 0, 0
+}
+
+func (g *StatusResponse) Identify() string {
+	switch g.Uby {
+	case 1:
+		return g.Rna
+	case 2:
+		return g.Rnm
+	case 3:
+		return g.Rne
+	case 4:
+		return g.Rn4
+	case 5:
+		return g.Rn5
+	case 6:
+		return g.Rn6
+	case 7:
+		return g.Rn7
+	case 8:
+		return g.Rn8
+	case 9:
+		return g.Rn9
+	case 10:
+		return g.Rn1
+	default:
+		return ""
+	}
+}
diff --git a/charger/go-e/types2.go b/charger/go-e/types2.go
new file mode 100644
index 00000000..a835a8bb
--- /dev/null
+++ b/charger/go-e/types2.go
@@ -0,0 +1,65 @@
+package goe
+
+// StatusResponse2 is the v2 API response
+type StatusResponse2 struct {
+	Fwv   string    // firmware version
+	Car   int       // car status
+	Alw   bool      // allow charging
+	Amp   int       // current [A]
+	Err   int       // error
+	Eto   uint64    // energy total Wh
+	Psm   int       // phase switching
+	Stp   int       // stop state
+	Tmp   int       // temperature [°C]
+	Trx   int       // transaction
+	Nrg   []float64 // voltage, current, power
+	Wh    float64   // energy [Wh]
+	Cards []Card    // RFID cards
+}
+
+// Card is the v2 RFID card
+type Card struct {
+	Name   string
+	Energy int
+	CardID bool
+}
+
+func (g *StatusResponse2) Status() int {
+	return g.Car
+}
+
+func (g *StatusResponse2) Enabled() bool {
+	return g.Alw
+}
+
+func (g *StatusResponse2) CurrentPower() float64 {
+	if len(g.Nrg) == 16 {
+		return g.Nrg[11]
+	}
+
+	return 0
+}
+
+func (g *StatusResponse2) ChargedEnergy() float64 {
+	return g.Wh / 1e3
+}
+
+func (g *StatusResponse2) TotalEnergy() float64 {
+	return float64(g.Eto) / 1e3
+}
+
+func (g *StatusResponse2) Currents() (float64, float64, float64) {
+	if len(g.Nrg) == 16 {
+		return g.Nrg[4], g.Nrg[5], g.Nrg[6]
+	}
+
+	return 0, 0, 0
+}
+
+func (g *StatusResponse2) Identify() string {
+	if g.Trx > 0 {
+		return g.Cards[g.Trx-1].Name
+	}
+
+	return ""
+}
diff --git a/charger/go-e_decorators.go b/charger/go-e_decorators.go
new file mode 100644
index 00000000..0d3f2746
--- /dev/null
+++ b/charger/go-e_decorators.go
@@ -0,0 +1,69 @@
+package charger
+
+// Code generated by github.com/andig/cmd/tools/decorate.go. DO NOT EDIT.
+
+import (
+	"github.com/evcc-io/evcc/api"
+)
+
+func decorateGoE(base *GoE, meterEnergy func() (float64, error), chargePhases func(phases int) error) api.Charger {
+	switch {
+	case chargePhases == nil && meterEnergy == nil:
+		return base
+
+	case chargePhases == nil && meterEnergy != nil:
+		return &struct {
+			*GoE
+			api.MeterEnergy
+		}{
+			GoE: base,
+			MeterEnergy: &decorateGoEMeterEnergyImpl{
+				meterEnergy: meterEnergy,
+			},
+		}
+
+	case chargePhases != nil && meterEnergy == nil:
+		return &struct {
+			*GoE
+			api.ChargePhases
+		}{
+			GoE: base,
+			ChargePhases: &decorateGoEChargePhasesImpl{
+				chargePhases: chargePhases,
+			},
+		}
+
+	case chargePhases != nil && meterEnergy != nil:
+		return &struct {
+			*GoE
+			api.ChargePhases
+			api.MeterEnergy
+		}{
+			GoE: base,
+			ChargePhases: &decorateGoEChargePhasesImpl{
+				chargePhases: chargePhases,
+			},
+			MeterEnergy: &decorateGoEMeterEnergyImpl{
+				meterEnergy: meterEnergy,
+			},
+		}
+	}
+
+	return nil
+}
+
+type decorateGoEChargePhasesImpl struct {
+	chargePhases func(int) error
+}
+
+func (impl *decorateGoEChargePhasesImpl) Phases1p3p(phases int) error {
+	return impl.chargePhases(phases)
+}
+
+type decorateGoEMeterEnergyImpl struct {
+	meterEnergy func() (float64, error)
+}
+
+func (impl *decorateGoEMeterEnergyImpl) TotalEnergy() (float64, error) {
+	return impl.meterEnergy()
+}


Test patch:
diff --git a/charger/go-e/api_test.go b/charger/go-e/api_test.go
new file mode 100644
index 00000000..b96ebc9c
--- /dev/null
+++ b/charger/go-e/api_test.go
@@ -0,0 +1,68 @@
+package goe
+
+import (
+	"fmt"
+	"net/http"
+	"net/http/httptest"
+	"testing"
+
+	"github.com/evcc-io/evcc/util"
+)
+
+type handler struct {
+	uri string
+}
+
+func (h *handler) expect(uri string) {
+	h.uri = uri
+}
+
+func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+	path := r.URL.Path
+	if r.URL.RawQuery != "" {
+		path += "?" + r.URL.RawQuery
+	}
+	fmt.Println(path)
+
+	if path == h.uri {
+		fmt.Fprint(w, "{}")
+	} else {
+		w.WriteHeader(http.StatusInternalServerError)
+		fmt.Fprintf(w, "expected %s", h.uri)
+	}
+}
+
+func TestLocalV1(t *testing.T) {
+	h := &handler{}
+	srv := httptest.NewServer(h)
+
+	// h.expect("/api/status?filter=alw")
+	local := NewLocal(util.NewLogger("foo"), srv.URL)
+
+	h.expect("/status")
+	if _, err := local.Status(); err != nil {
+		t.Error(err)
+	}
+
+	h.expect("/mqtt?payload=foo=bar")
+	if err := local.Update("foo=bar"); err != nil {
+		t.Error(err)
+	}
+}
+func TestLocalV2(t *testing.T) {
+	h := &handler{}
+	srv := httptest.NewServer(h)
+
+	h.expect("/api/status?filter=alw")
+	local := NewLocal(util.NewLogger("foo"), srv.URL)
+
+	h.expect("/api/status?filter=alw,car,eto,nrg,wh,trx,cards")
+	if _, err := local.Status(); err != nil {
+		t.Error(err)
+	}
+
+	h.expect("/api/set?foo=bar")
+	if err := local.Update("foo=bar"); err != nil {
+		t.Error(err)
+	}
+}
diff --git a/charger/go-e_test.go b/charger/go-e_test.go
new file mode 100644
index 00000000..197f6774
--- /dev/null
+++ b/charger/go-e_test.go
@@ -0,0 +1,89 @@
+package charger
+
+import (
+	"fmt"
+	"net/http"
+	"net/http/httptest"
+	"testing"
+
+	"github.com/evcc-io/evcc/api"
+	"github.com/evcc-io/evcc/util/sponsor"
+)
+
+type handler struct {
+	uri string
+}
+
+func (h *handler) expect(uri string) {
+	h.uri = uri
+}
+
+func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+	path := r.URL.Path
+	if r.URL.RawQuery != "" {
+		path += "?" + r.URL.RawQuery
+	}
+	fmt.Println(path)
+
+	if path == h.uri {
+		fmt.Fprint(w, "{}")
+	} else {
+		w.WriteHeader(http.StatusInternalServerError)
+		fmt.Fprintf(w, "expected %s", h.uri)
+	}
+}
+
+func TestGoEV1(t *testing.T) {
+	h := &handler{}
+	srv := httptest.NewServer(h)
+
+	wb, err := NewGoE(srv.URL, "", 0)
+	if err != nil {
+		t.Error(err)
+	}
+
+	if _, ok := wb.(api.Meter); !ok {
+		t.Error("missing Meter api")
+	}
+
+	if _, ok := wb.(api.MeterCurrent); !ok {
+		t.Error("missing MeterCurrent api")
+	}
+
+	if _, ok := wb.(api.Identifier); !ok {
+		t.Error("missing Identifier api")
+	}
+}
+
+func TestGoEV2(t *testing.T) {
+	h := &handler{}
+	srv := httptest.NewServer(h)
+
+	sponsor.Subject = "foo"
+
+	h.expect("/api/status?filter=alw")
+	wb, err := NewGoE(srv.URL, "", 0)
+	if err != nil {
+		t.Error(err)
+	}
+
+	if _, ok := wb.(api.Meter); !ok {
+		t.Error("missing Meter api")
+	}
+
+	if _, ok := wb.(api.MeterCurrent); !ok {
+		t.Error("missing MeterCurrent api")
+	}
+
+	if _, ok := wb.(api.Identifier); !ok {
+		t.Error("missing Identifier api")
+	}
+
+	if _, ok := wb.(api.MeterEnergy); !ok {
+		t.Error("missing MeterEnergy api")
+	}
+
+	if _, ok := wb.(api.ChargePhases); !ok {
+		t.Error("missing ChargePhases api")
+	}
+}