Enercab Smart ( ELEDIO - EVCC01 ) basic support #13990
Merged
+13
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enercab Smart ( ELEDIO - EVCC01 https://www.enercab.at/starkstrom-11kw-3x16a/1219-enercab-smart-3x16a-400cee-11kw-100m-starkstrom-intelligentes-ladekabel-9120099491495.html ) can be used in OCPP mode, however when switching to websocket it sends "file://" as source string which by default is rejected by lorenzodoninis library, so a handler has to be set to accept it.
The next problem is that the power value is sent as a space padded string which has to be trimmed.
If EVCC is killed during a running transaction and the car is unplugged or requests a stop, the box tries to get a StopTransaction message through even after being power cycled - this prevents the initialization of a new EVCC instance. So, if such a StopTransaction is received before the new connection is actually initialized, it is rejected by an additional patch.
I'm still trying to figure out how to reliably switch phases, I ran into the StopTransaction issue using #12861 and I have not included the reset code for easier integrability - not even a hard reset gets that resending of StopTransaction away, after initially believing that I had bricked the box I found out that iobroker-ocpp was able to revive it, then I realized that the Transaction was always repeated.