evcc-io / evcc

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

API evcc/loadpoints/<id>/targetTime funktioniert seit V0.114.1 nicht mehr #6925

Closed DerDoubleD closed 1 year ago

DerDoubleD commented 1 year ago

Describe the bug

Ich sende mit MQTT, wie früher auch" einen ISO-String 2023-03-18T04:50:00Z an evcc/loadpoints/2/targetTime/set Leider wird die Zielzeit nicht mehr geändert...

Steps to reproduce

  1. ISO-String 2023-03-18T04:50:00Z an evcc/loadpoints/2/targetTime/set per MQTT senden

Keine Änderung in evcc/loadpoints/2/targetTime

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: info
levels:
  cache: error

# unique installation id
plant: 9415376822784xxxxxxxxxxxxxxxxxxxxxx4e48e8a5fc181bc

interval: 10s # control cycle interval

sponsortoken: exxxxxxxxxxxxxxxxxxxxxxxxM

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

meters:
- type: template
  template: sonnenbatterie 
  usage: grid  
  host: 192.168.xx.xx  
  port: 8080  
  name: grid1
- type: template
  template: sonnenbatterie 
  usage: pv  
  host: 192.168.xx.xx  
  port: 8080  
  name: pv2
- type: template
  template: sonnenbatterie 
  usage: battery  
  host: 192.168.xx.xx  
  port: 8080  
  name: battery3

chargers:
- type: template
  template: go-e-v3 
  host: 192.168.xx.xxx  
  name: wallbox4
- type: template
  template: go-e-v3 
  host: 192.168.xx.xxx  
  name: wallbox5

loadpoints:
- title: Garage Tor
  charger: wallbox4
  mode: pv
  phases: 0
  mincurrent: 6
  maxcurrent: 16
  resetOnDisconnect: false
- title: Garage vorne
  charger: wallbox5
  mode: pv
  phases: 0
  mincurrent: 6
  maxcurrent: 16
  vehicle: enyaq
  resetOnDisconnect: true

vehicles:
- name: enyaq
  type: template 
  template: enyaq
  title: Enyaq
  user: XXXX.XXXX@XXXX.de
  password: XXXXXXXXXXXXXXXXXXX
  vin: XXXXXXXXXXXXXXXXXX
  capacity: 62

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.407
  feedin:
    type: fixed
    price: 0.112
  planner:
    type: grünstromindex
    zip: 9xxx2

mqtt:
  broker: 192.168.xx.xx:1883
  topic: evcc
  clientid: evcc
  user: smarthome
  password: XXXXXXXXXXXXXXXX

influx:
  url: http://192.168.xx.xx:8086
  database: evcc
  token: -nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxw==
  org: xxx

site:
  title: Hainbuchenweg
  meters:
    grid: grid1
    pvs:
    - pv2
    batteries:
    - battery3
  prioritySoc: 90 # Hausbatterie bekommt bis zum Soc xx% Priorität beim laden

Log details

[main  ] INFO 2023/03/18 19:55:50 evcc 0.114.1
[main  ] INFO 2023/03/18 19:55:50 using config file: /etc/evcc.yaml
[main  ] INFO 2023/03/18 19:55:50 starting ui and api at :7070
[db    ] INFO 2023/03/18 19:55:50 using sqlite database: /root/.evcc/evcc.db
[mqtt  ] INFO 2023/03/18 19:55:50 connecting evcc at tcp://192.168.xx.xx:1883
[mqtt  ] DEBUG 2023/03/18 19:55:50 tcp://192.168.xx.xx:1883 connected
[site  ] INFO 2023/03/18 19:55:54 site config:
[site  ] INFO 2023/03/18 19:55:54   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2023/03/18 19:55:54     grid:      power ✓ energy ✗ currents ✗
[site  ] INFO 2023/03/18 19:55:54     pv 1:      power ✓ energy ✗ currents ✗
[site  ] INFO 2023/03/18 19:55:54     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✗
[site  ] INFO 2023/03/18 19:55:54   vehicles:
[site  ] INFO 2023/03/18 19:55:54     vehicle 1: range ✓ finish ✓ status ✓ climate ✗ wakeup ✗
[lp-1  ] INFO 2023/03/18 19:55:54 loadpoint 1:
[lp-1  ] INFO 2023/03/18 19:55:54   mode:        pv
[lp-1  ] INFO 2023/03/18 19:55:54   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2023/03/18 19:55:54   meters:      charge ✓
[lp-1  ] INFO 2023/03/18 19:55:54     charge:    power ✓ energy ✓ currents ✓
[lp-2  ] INFO 2023/03/18 19:55:54 loadpoint 2:
[lp-2  ] INFO 2023/03/18 19:55:54   mode:        pv
[lp-2  ] INFO 2023/03/18 19:55:54   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-2  ] INFO 2023/03/18 19:55:54   meters:      charge ✓
[lp-2  ] INFO 2023/03/18 19:55:54     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] DEBUG 2023/03/18 19:55:54 phase timer inactive
[lp-1  ] DEBUG 2023/03/18 19:55:54 pv timer inactive
[lp-2  ] DEBUG 2023/03/18 19:55:54 phase timer inactive
[lp-2  ] DEBUG 2023/03/18 19:55:54 pv timer inactive
[lp-2  ] INFO 2023/03/18 19:55:54 vehicle updated: unknown -> Enyaq
[site  ] DEBUG 2023/03/18 19:55:54 ----
[lp-1  ] DEBUG 2023/03/18 19:55:54 charge power: 0W
[lp-2  ] DEBUG 2023/03/18 19:55:54 charge power: 0W
[site  ] DEBUG 2023/03/18 19:55:54 pv power: 9W
[site  ] DEBUG 2023/03/18 19:55:54 battery soc: 55%
[site  ] DEBUG 2023/03/18 19:55:54 battery power: 1946W
[site  ] DEBUG 2023/03/18 19:55:54 grid power: 20W
[site  ] DEBUG 2023/03/18 19:55:54 site power: 1966W
[lp-1  ] DEBUG 2023/03/18 19:55:55 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/03/18 19:55:55 charger status: A
[lp-1  ] INFO 2023/03/18 19:55:55 car disconnected
[site  ] DEBUG 2023/03/18 19:56:04 ----
[lp-1  ] DEBUG 2023/03/18 19:56:04 charge power: 0W
[lp-2  ] DEBUG 2023/03/18 19:56:04 charge power: 0W
[site  ] DEBUG 2023/03/18 19:56:04 pv power: 8W
[site  ] DEBUG 2023/03/18 19:56:05 battery soc: 55%
[site  ] DEBUG 2023/03/18 19:56:05 battery power: 1957W
[site  ] DEBUG 2023/03/18 19:56:05 grid power: 34W
[site  ] DEBUG 2023/03/18 19:56:05 site power: 1991W
[lp-2  ] DEBUG 2023/03/18 19:56:05 vehicle odometer: 1225km
[lp-2  ] DEBUG 2023/03/18 19:56:05 charge currents: [0 0 0]A
[lp-2  ] DEBUG 2023/03/18 19:56:05 charger status: B
[lp-2  ] INFO 2023/03/18 19:56:05 car connected
[lp-2  ] DEBUG 2023/03/18 19:56:05 pv timer elapse
[lp-2  ] DEBUG 2023/03/18 19:56:05 pv timer inactive
[lp-2  ] DEBUG 2023/03/18 19:56:06 vehicle status: B
[lp-2  ] DEBUG 2023/03/18 19:56:06 vehicle soc: 20%
[lp-2  ] DEBUG 2023/03/18 19:56:06 vehicle soc limit: 100%
[lp-2  ] DEBUG 2023/03/18 19:56:06 vehicle range: 63km
[lp-2  ] DEBUG 2023/03/18 19:56:07 available power -1991W < 4140W min 3p threshold
[lp-2  ] DEBUG 2023/03/18 19:56:07 start phase scale1p timer
[lp-2  ] DEBUG 2023/03/18 19:56:07 phase scale1p in 3m0s
[lp-2  ] DEBUG 2023/03/18 19:56:07 pv charge current: 0A = 0A + -2.89A (1991W @ 3p)
[lp-2  ] DEBUG 2023/03/18 19:56:07 pv enable timer reset
[lp-2  ] DEBUG 2023/03/18 19:56:07 pv timer inactive
[site  ] DEBUG 2023/03/18 19:56:14 ----
[lp-1  ] DEBUG 2023/03/18 19:56:14 charge power: 0W
[lp-2  ] DEBUG 2023/03/18 19:56:14 charge power: 0W
[site  ] DEBUG 2023/03/18 19:56:14 pv power: 10W
[site  ] DEBUG 2023/03/18 19:56:14 battery soc: 55%
[site  ] DEBUG 2023/03/18 19:56:14 battery power: 1958W
[site  ] DEBUG 2023/03/18 19:56:14 grid power: 34W
[site  ] DEBUG 2023/03/18 19:56:14 site power: 1992W
[lp-1  ] DEBUG 2023/03/18 19:56:14 charge currents: [0 0 0]A
[lp-1  ] DEBUG 2023/03/18 19:56:15 charger status: A

What type of operating system are you running?

Linux

Version

V0.114.1

andig commented 1 year ago

Geht es über http?

andig commented 1 year ago

Grad nochmal probiert. Geht bei mir und ist im Logfile auch sichtbar, neuer Wert wird über MQTT dann ausgegeben:

[mqtt  ] TRACE 2023/03/18 20:23:00 recv evcc/loadpoints/1/targetTime/set: '2023-03-18T04:50:00Z'
[mqtt  ] TRACE 2023/03/18 20:23:00 send evcc/loadpoints/1/targetTime/set: ''
DerDoubleD commented 1 year ago

OK, Hab den Fehler gefunden. Lag an meinem System. Sorry für die Falschmeldung und Danke für die schnelle Hilfe!