Newan / ioBroker.evcc

ioBroker Adapter to control your evcc instance
MIT License
10 stars 6 forks source link

Control charging mode does not work #12

Closed sash2kk closed 1 year ago

sash2kk commented 1 year ago

The control of charging modes does not work. I use 0.116.3 version of evcc and don't know if they renamed some adresses?

I try switching between "off" and "pv" mode. This is the error I get.

image

Newan commented 1 year ago

works here? No Error found

sash2kk commented 1 year ago

How should I trigger the states? It seems to work once, but not repeating. Should I trigger the value to true?

grafik grafik

Newan commented 1 year ago

Yes set the value back to true, if necessary with Confirmed

sash2kk commented 1 year ago

I know what the issue is - but I don't know how to fix it.

I have 2 loadpoints in evcc. 1st one is the garage - 2nd outside. In evcc the IDs count 1 and 2. But in the evcc adapter in iobroker its counted 0 and 1.

ID 0 in iobroker is ID 1 in evcc. When I change a state in ID 0 I get the error (404) When I change a state in iobroker ID 1 it changes the state correctly - but for ID 1 in evcc.

evcc Loadpoint 2 cannot be adressed. - So I think the problem is, that the IDs are mismatched. Any idea how to fix this?

grafik

Newan commented 1 year ago
image

Ist das auch so das unter loadpoints die falschen IDs stehen?

sash2kk commented 1 year ago

Genau: grafik

Newan commented 1 year ago

Bitte mal alle Loadpoints löschen, Adapter neu starten. Es müsste folgende Logeinträge kommen:

"Lege neuen Ladepunkt an mit Index: " -> wenn da einer mit 0 angelegt wird, hab ich einen Bug

sash2kk commented 1 year ago

grafik

Dann ist es ein Bug würde ich sagen.

Newan commented 1 year ago

evcc.0 | 2023-04-23 22:36:05.316 | info | Lege neuen Ladepunkt an mit Index: 1
-- | -- | -- | --
evcc.0 | 2023-04-23 22:36:05.316 | debug | Ladepunkt mit index loadpoint.1 gefunden...

Hab versucht das nachzustellen , habe aber nur einen Datenpunkt. Ist das die aktuelle Version vom git?

Node -v = v19.7.0 (dev umgebung bei mir)

Newan commented 1 year ago

Durch die Zeile kann da eigentlich nie eine 0 kommen:

index = index + 1;// +1 why Evcc starts with 1

sash2kk commented 1 year ago

Oh Mann... ich hab keine Ahnung, wie ich eine veraltete Version vor 1 Monat installiert habe... aber irgendwie hab ich es geschafft die 0.0.4 auf dem ioBroker zu haben. Sorry - mit der 0.0.7 funktioniert es problemlos!