evcc: Ocpp: cannot take over foreign transaction
Describe the bug
With version 0.120.2 versus 0.119.3, it looks like it is much harder for evcc to sync with the charger state. Because I don´t know how to disconnect and reconnect the car without starting a transaction, before I restart evcc, I usually end up starting evcc with a transaction running. This would usually result in a few errors, but then I can set evcc to mode Off and back to PV. Except now, I can´t seem to get evcc to get control. This is using an OCPP charger.
Steps to reproduce
-
Stop evcc
-
Disconnect car
-
Start evcc
-
Connect car. A transaction starts which is not started by evcc.
-
Evcc reports: [lp-1 ] WARN 2023/09/24 14:36:31 charger logic error: disabled but charging [lp-1 ] ERROR 2023/09/24 14:36:31 charger: cannot enable: transaction already running
-
Set evcc to mode Off
-
Set evcc to mode PV
Evcc no longer executes any RemoteStopTransaction or RemoteStartTransaction I believe. Evcc never gets in control of the state.
Configuration details
OCPP charger
Log details
[lp-1 ] WARN 2023/09/24 14:36:31 charger logic error: disabled but charging
[lp-1 ] ERROR 2023/09/24 14:36:31 charger: cannot enable: transaction already running
What type of operating system are you running?
Linux
Version
0.120.2
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 20 (8 by maintainers)
I was primarily thinking about how to help @wlanrouter to get his setup working with the current evcc version.
I actually also never noticed that we sometimes get the transaction ID “by accident”. I guess we really could take over the transaction in those cases. However this might be very device specific and probably error prone. But yes it is definitely worth a try
Yes indeed, the wallbox settings are “automatically”. Thank you @binzman But having evcc taking over the transaction ID would be pretty convenient. In case of evcc beeing unavailable (WiFi down, Raspi down, evcc down), the car would at least start charging. evcc could take over as soon as it is available again.
I will change it to “Swipe key” for now, but I would be happy to run some tests if the evcc team is interested in taking over a wallbox transaction! Could be maybe something more than only one wallbox model is doing. Please let me know if I could help anyhow @andig