-
-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPP: Energy meter value not parsed/identified by EVCC #19351
Comments
The charging station rejects the measurand activation
but still sends the data (and has it in the initial configuration message). In case of Current.Import, it accepts the configuration. |
Thanks for looking at it. Should I try to change config somehow? It was my guess that the wallbox has nonstandard responses. Is there any workaround? |
You can set |
Was thinking this as well, but at least in the provided config, they are configured @tafx has the full log file been created with exactly this config? |
Yes for the case of wallbox with id 111. The second wallbox (id 222) has minimal config. Results seem to me to be the same. |
Oh, could you please temporarily remove the second charger and create new logs? It is not easy to get an overview when having to find out for each message to which charger it belongs. |
Here is the new log with just one charger. |
Think I found the issue: Evcc appends the phase to the key when storing the measurement evcc/charger/ocpp/connector_core.go Line 53 in f26786c
This leads to the situation that the measurement cannot be found later when looking for evcc/charger/ocpp/connector.go Line 319 in f26786c
|
Seems vendor will need to fix this. |
While Ocpp specs are very vague about this
it is quite obvious that it does not make real sense in case of this specific measurand. |
Still, seems to be easy to solve in evcc. Just fall back to phase measurements as it is done here evcc/charger/ocpp/connector.go Line 274 in f26786c
|
Thanks to both. |
Created the pull request #19405, I think it might make this charger work while not hurting anyone else. Same is already implemented for Power.Active.Import. |
@tafx you can try again with the next nightly build. |
I am using the HA addon so I cant use nightly build right? |
I think it is possible, see https://docs.evcc.io/en/docs/installation/home-assistant#installation But for quick testing, it might be simpler to just run the nightly on your normal computer with the same config as in home assistant (maybe without vehicle configuration). Anyhow, you have to wait for the next nightly build. The other option is to wait for the next release. |
Thanks. I will report back at latest after next release. |
Here is report after update 0.200.8: EVCC have the values from both wallboxes, but with wrong unit. In the part of the message the unit is correct {"value":"826199","context":"Trigger","format":"Raw","measurand":"Energy.Active.Import.Register","phase":"L1","location":"Body","unit":"Wh"}. |
Excellent, here we go: #19590 |
Describe the bug
EVCC does not recognize the value of energy meter from wallbox connected by OCPP, although the value "Energy.Active.Import.Register" is present in the message received from wallbox.
The wallbox is some cheap china product Sino Energy PEVC2107.
In the log is the message: "[lp-2 ] ERROR 2025/03/02 20:35:55 charge total import: not available ".
Different OCPP charger config parameters were tested (e.g. metervalues), cf. config file without success.
2 chargers of the same type are used and configured with the same issue.
Steps to reproduce
evcc-20250302-201859-trace.log
Configuration details
Log details
What type of operating system or environment does evcc run on?
HomeAssistant Add-on
External automation
Nightly build
Version
0.200.5
The text was updated successfully, but these errors were encountered: