evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Fehlermeldung 2. Ladepunkt "charge meter: json: cannot unmarshal number..."

Open pablopalec opened this issue 4 years ago • 5 comments

Describe the bug Fehlermeldung an zweitem Ladepunkt

To Reproduce Steps to reproduce the behavior: Ich habe zum testen auf Basis einer jungfräulichen Raspberry OS Installation evcc gemäß Anleitung installiert und per evcc configure konfiguriert. An dieser Stelle ein großes Lob für den Assistenten!

Am Ladepunkt "Hof" funktioniert evcc wie gewünscht, beim Ladepunkt "Garage" bekomme ich Fehlermeldungen, die ich nicht zuordnen kann. Das Laden kann aber z.B. über Anwahl des Modus "Sofort" gestartet werden.

EVCC details: Show output of evcc -v:

evcc version 0.79 (ae2c1bd)

Show output of evcc dump -c configfile:
Unsupported Config Type ""

Show evcc configuration file evcc.yaml:
uri: 0.0.0.0:7070 # uri for ui
interval: 10s # control cycle interval

log: info

meters:

  • type: template template: sma-home-manager usage: grid host: 192.168.254.86 name: grid1
  • type: template template: sma-inverter usage: pv host: 192.168.254.79 password: xxxx # Wird nur benötigt, wenn das Standardpasswort geändert wurde name: pv2

chargers:

  • type: template template: go-e host: 192.168.254.125 name: wallbox4
  • type: template template: go-e host: 192.168.254.137 name: wallbox5

vehicles:

  • type: template template: seat title: Mii electric user: xxx password: xxxx vin: VSSZZxxx capacity: 32 cache: 5 mode: pv minSoC: 40 targetSoC: 95 minCurrent: 6 maxCurrent: 16 name: ev3

loadpoints:

  • title: Hof charger: wallbox4 vehicles:
    • ev3 mode: pv phases: 3 mincurrent: 6 maxcurrent: 16 resetOnDisconnect: false
  • title: Garage charger: wallbox5 vehicles:
    • ev3 mode: pv phases: 3 mincurrent: 6 maxcurrent: 16 resetOnDisconnect: false

site: title: Franzosenweg 16 meters: grid: grid1 pvs: - pv2

hems: type: sma AllowControl: false

sponsortoken: xxx

Show evcc log output with --log debug:
Jan 06 09:58:53 steuermann evcc[853]: [main  ] INFO 2022/01/06 09:58:53 evcc 0.79 (ae2c1bd)
Jan 06 09:58:53 steuermann evcc[853]: [main  ] INFO 2022/01/06 09:58:53 using config file /etc/evcc.yaml
Jan 06 09:58:53 steuermann evcc[853]: [main  ] INFO 2022/01/06 09:58:53 listening at 0.0.0.0:7070
Jan 06 09:58:55 steuermann evcc[853]: [go-e  ] WARN 2022/01/06 09:58:55 automatic 1p3p phase switching requires sponsor token
Jan 06 09:58:55 steuermann evcc[853]: [go-e  ] WARN 2022/01/06 09:58:55 automatic 1p3p phase switching requires sponsor token
Jan 06 09:58:57 steuermann evcc[853]: [semp  ] WARN 2022/01/06 09:58:57 SEMP_BASE_URL unspecified, using http://192.168.254.127:7070 instead
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57 vehicle updated: unknown -> Mii electric
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57 vehicle updated: unknown -> Mii electric
Jan 06 09:58:57 steuermann evcc[853]: [site  ] INFO 2022/01/06 09:58:57 site config:
Jan 06 09:58:57 steuermann evcc[853]: [site  ] INFO 2022/01/06 09:58:57   meters:    grid ✓ pv ✓ battery ✗
Jan 06 09:58:57 steuermann evcc[853]: [site  ] INFO 2022/01/06 09:58:57     grid:    power ✓ energy ✓ currents ✓
Jan 06 09:58:57 steuermann evcc[853]: [site  ] INFO 2022/01/06 09:58:57     pv 0:    power ✓ energy ✓ currents ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57 loadpoint 1:
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57   mode:      pv
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57   charger:   power ✓ energy ✓ currents ✓ timer ✗
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57   meters:    charge ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57     charge:  power ✓ energy ✓ currents ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57   vehicles:  ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 09:58:57     car 0:   range ✓ finish ✓ status ✓ climate ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57 loadpoint 2:
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57   mode:      pv
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57   charger:   power ✓ energy ✓ currents ✓ timer ✗
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57   meters:    charge ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57     charge:  power ✓ energy ✓ currents ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57   vehicles:  ✓
Jan 06 09:58:57 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 09:58:57     car 0:   range ✓ finish ✓ status ✓ climate ✓
Jan 06 12:10:12 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 12:10:12 car connected
Jan 06 12:10:28 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:28 charge meter: json: cannot unmarshal number 17.04689 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:28 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:28 charge meter: json: cannot unmarshal number 17.04689 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:28 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:28 charge rater: json: cannot unmarshal number 17.04689 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:28 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:28 charger: json: cannot unmarshal number 17.04689 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:49 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:49 charge meter: json: cannot unmarshal number 60.48178 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:49 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:49 charge meter: json: cannot unmarshal number 60.48178 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:50 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:50 charge rater: json: cannot unmarshal number 64.73922 into Go struct field Card.Cards.Energy of type int
Jan 06 12:10:51 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:10:51 charger: json: cannot unmarshal number 64.73922 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:12 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:12 charge meter: json: cannot unmarshal number 110.5278 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:12 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:12 charge meter: json: cannot unmarshal number 110.5278 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:13 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:13 charge rater: json: cannot unmarshal number 110.5278 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:14 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:14 charger: json: cannot unmarshal number 112.6521 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:32 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:32 charge meter: json: cannot unmarshal number 150.8425 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:32 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:32 charge meter: json: cannot unmarshal number 150.8425 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:32 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:32 charge rater: json: cannot unmarshal number 150.8425 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:33 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:33 charger: json: cannot unmarshal number 155.0995 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:49 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:49 charge meter: json: cannot unmarshal number 186.8781 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:49 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:49 charge meter: json: cannot unmarshal number 189.0313 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:49 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:49 charge rater: json: cannot unmarshal number 189.0313 into Go struct field Card.Cards.Energy of type int
Jan 06 12:11:50 steuermann evcc[853]: [lp-2  ] ERROR 2022/01/06 12:11:50 charger: json: cannot unmarshal number 189.0313 into Go struct field Card.Cards.Energy of type int
Jan 06 12:12:09 steuermann evcc[853]: [lp-2  ] INFO 2022/01/06 12:12:09 car disconnected
Jan 06 12:12:10 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:12:10 charger out of sync: expected enabled, got disabled
Jan 06 12:12:28 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:12:28 charger out of sync: expected enabled, got disabled
Jan 06 12:12:51 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:12:51 charger out of sync: expected enabled, got disabled
Jan 06 12:13:09 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:13:09 charger out of sync: expected enabled, got disabled
Jan 06 12:13:31 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:13:31 charger out of sync: expected enabled, got disabled
Jan 06 12:13:58 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:13:58 charger out of sync: expected enabled, got disabled
Jan 06 12:14:00 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:14:00 car connected
Jan 06 12:14:08 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:14:08 charger out of sync: expected enabled, got disabled
Jan 06 12:14:18 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:14:18 start charging ->
Jan 06 12:14:29 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:14:29 charger out of sync: expected enabled, got disabled
Jan 06 12:14:52 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:14:52 charger out of sync: expected enabled, got disabled
Jan 06 12:15:08 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:15:08 charger out of sync: expected enabled, got disabled
Jan 06 12:15:28 steuermann evcc[853]: [lp-2  ] WARN 2022/01/06 12:15:28 charger out of sync: expected enabled, got disabled
Jan 06 12:17:58 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:17:58 stop charging <-
Jan 06 12:36:18 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:36:18 start charging ->
Jan 06 12:36:58 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:36:58 stop charging <-
Jan 06 12:36:58 steuermann evcc[853]: [lp-1  ] WARN 2022/01/06 12:36:58 charger out of sync: expected enabled, got disabled
Jan 06 12:37:18 steuermann evcc[853]: [lp-1  ] INFO 2022/01/06 12:37:18 start charging 

pablopalec avatar Jan 06 '22 12:01 pablopalec

@pablopalec erstmal Dickes Danke für das hervorragend beschriebene Ticket! Sieht hier aus, als würde Dein go-e float statt int liefern, ich korrigiere das...

andig avatar Jan 06 '22 12:01 andig

Mit https://github.com/evcc-io/evcc/commit/759381a2f32de1f9cc0a3e5442d1c14a4871e39f behoben, kommt mit dem nächsten Release bzw. nightly build.

andig avatar Jan 06 '22 12:01 andig

Hallo andi und vielen Dank für den schnelle Fix! Ein großes Lob noch einmal für die Entwicklung von evcc. Ich hoffe du behältst den Spaß dabei und bin gespannt, wohin die Reise noch geht!

Gruß,

stephan

pablopalec avatar Jan 06 '22 12:01 pablopalec

Der Spaß ist da und das Team machts. Ohne soviele Mitstreiter- sei es im Kernteam oder auch in der Community- wäre das Ergebnis nicht das was wir erreicht haben und es würde auch nicht soviel Spass machen...

andig avatar Jan 06 '22 13:01 andig

En kurzes Feedback, ich habe es nicht eher geschafft zu testen: der Fehler ist behoben, evcc läuft in meiner Konstellation tadellos. Ich bin begeistert, vielen Dank und weiter so!

pablopalec avatar Jan 17 '22 12:01 pablopalec