evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.35k stars 613 forks source link

Easee Home nach update auf 0.116.7 Fehler #7829

Closed chrisherzberg closed 1 year ago

chrisherzberg commented 1 year ago

Describe the bug

Hallo zusammen,

nachdem ich die Version 0.116.7 installiert habe, bekomme ich meine Easee Home nicht mehr an evcc dran. Username ist natürlich schon auf Email Adresse umgestellt, ansonsten würden ja auch keine Werte zurückkommen.

invalid message: {\"serialNumber\":\"EH803080\",\"id\":48,\"timestamp\":\"2023-05-05T11:44:26.035385Z\",\"deliveredAt\":null,\"wasAccepted\":false,\"resultCode\":0,\"comment\":\"command expired at 1683287186, my time=1683295345\",\"ticks\":638188838660353850} json: cannot unmarshal number into Go struct field SignalRCommandResponse.ResultCode of type string

Neuer Fehler, oder sehe ich den Wald vor lauter Bäumen nicht?

Besten Dank Chris

Steps to reproduce

  1. Start evcc
  2. Look at the webpage

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: 617f5a16d07d79cbbb0e129c0118b45

interval: 10s # control cycle interval

sponsortoken: eyJhbGciOiJIUzYy5pbyIsInN1YiI6ImNocmlzaGVyemJlcmcifQ.gEkawM>

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true

meters:
- type: template
  template: huawei-dongle-powersensor
  id: 1
  host: 192.168.182.251
  port: 502
  usage: grid
  modbus: tcpip
  name: grid1
- type: template
  template: huawei-dongle-powersensor
  id: 1
  host: 192.168.182.251
  port: 502
  usage: pv
  modbus: tcpip
  name: pv2
- type: template
  template: huawei-dongle-powersensor
  id: 1
  host: 192.168.182.251
  port: 502
  usage: battery
  modbus: tcpip
  name: battery3
- type: custom
  power:
    source: mqtt
    broker: 192.168.180.48:1883
    topic: solar/total/P_AC
  energy:
    source: mqtt
    broker: 192.168.180.48:1883
    topic: solar/total/YieldDay
  name: pv3

chargers:
- type: template
  template: easee
  user: xxxxxx@xxxx.de
  password: xxxxxxxxxx
  charger: EH803080
  name: wallbox5

vehicles:
- type: template
  template: tesla
  title: Model Y
  accessToken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtdHRwczovL2F1dGgudGVzbGEuY29tL29hdXRoMi92MyIs>
  refreshToken: eyJhbGciOiJSUzI1NiIsInR5cC9.eyJpc3MiOiJodHRwczovL2F1dGgudGVzbGEuY29tL29hdXRoMi92MyI>
  capacity: 70
  name: ev4

loadpoints:
- title: Garage
  charger: wallbox5
  mode: pv
  phases: 3
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: true

site:
  title: Mein Zuhause
  meters:
    grid: grid1
    pv:
    - pv2
    - pv3
    battery:
    - battery3
  residualPower: 100
  bufferSoC: 95
  prioritySoC: 90

modbusproxy:
   - port: 5200
     uri: 192.168.182.251:502
     # rtu: true
     readonly: true

mqtt:
  broker: 192.168.180.48:1883
  topic: evcc

Log details


[site  ] DEBUG 2023/05/05 16:37:01 battery soc: 99%
[site  ] DEBUG 2023/05/05 16:37:01 battery power: 412W
[site  ] DEBUG 2023/05/05 16:37:03 grid power: -0W
[easee ] ERROR 2023/05/05 16:37:04 invalid message: {"serialNumber":"EH803080","id":48,"timestamp":"2023-05-05T11:39:51.050601Z","deliveredAt":null,"wasAccepted":false,"resultCode":0,"comment":"command expired at 1683286911, my time=1683297423","ticks":638188835910506010} json: cannot unmarshal number into Go struct field SignalRCommandResponse.ResultCode of type string
[easee ] ERROR 2023/05/05 16:37:04 invalid message: {"serialNumber":"EH803080","id":48,"timestamp":"2023-05-05T11:39:35.061127Z","deliveredAt":null,"wasAccepted":false,"resultCode":0,"comment":"command expired at 1683286895, my time=1683297423","ticks":638188835750611270} json: cannot unmarshal number into Go struct field SignalRCommandResponse.ResultCode of type string
[easee ] ERROR 2023/05/05 16:37:04 invalid message: {"serialNumber":"EH803080","id":48,"timestamp":"2023-05-05T11:40:25.308823Z","deliveredAt":null,"wasAccepted":false,"resultCode":0,"comment":"command expired at 1683286945, my time=1683297423","ticks":638188836253088230} json: cannot unmarshal number into Go struct field SignalRCommandResponse.ResultCode of type string

What type of operating system are you running?

Linux

Version

0.116.7

Balujuhu commented 1 year ago

Würde die tokens mal raus machen.

chrisherzberg commented 1 year ago

Sind doch nicht die echten Tokens. ;-)

andig commented 1 year ago

json: cannot unmarshal number into Go struct field SignalRCommandResponse.ResultCode of type string

andig commented 1 year ago

Fixed in https://github.com/evcc-io/evcc/commit/a46ac0ecd561af830d8f1522c627aa5e628acbf8.

/cc @naltatis