evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Wallbe Eco 2.0 shows factor 2 to high energy readings

Open mk-devs opened this issue 1 year ago • 13 comments

Describe the bug

Hello, i have an Wallbe Eco 2.0 with the Phoenix EV-CC-AC1-M3-CBC-RCM-ETH controller. The installed Firmware is Version: SL-01.04.21.

Wallbe internal it reports correctly 47,320 kWh But evcc reads double: 94,4 kWh = 2x 47,32 kWh

Reading Modbus Addess "phxRegEnergyWallbe = 2980" reads Wh with a factor of 2. So it can display 0,5 Wh Reading Modbus Address "phxRegChargedEnergyEx = 3376" reads Wh with factor 1 so 1 Wh is 1.

Steps to reproduce

  1. evcc 0.204.2
  2. Wallbe Eco 2.0s + Energymeter DS100-00B
  3. Read Total energy direcly in Wallbe Interface and compare to EVCC

Configuration details

.

Log details

[ev-eth] TRACE 2025/06/17 17:30:02 modbus: send 47 ed 00 00 00 06 ff 03 0b a4 00 04
[ev-eth] TRACE 2025/06/17 17:30:02 modbus: recv 47 ed 00 00 00 0b ff 03 08 77 64 00 01 00 00 00 00
[proxy-502] TRACE 2025/06/17 17:30:02 read coils: 00
[ev-eth] TRACE 2025/06/17 17:30:02 modbus: send 47 ef 00 00 00 06 ff 03 0b a4 00 04
[ev-eth] TRACE 2025/06/17 17:30:02 modbus: recv 47 ef 00 00 00 0b ff 03 08 77 64 00 01 00 00 00 00
[lp-1 ] DEBUG 2025/06/17 17:30:02 charge total import: 96.100kWh

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [ ] I have verified that the issue is reproducible with the latest nightly build

Version

0.204.2

mk-devs avatar Jun 17 '25 16:06 mk-devs

@premultiply I'm going slightly mad ;) Same as https://github.com/evcc-io/evcc/issues/20811?

andig avatar Jun 17 '25 16:06 andig

I have no idea. Changes my do EV-ETH/Wallbe where reverted. So should be the same as before for a long time.

As I do not have a meter attached to my Wallbe controller and all my meters return float values (scale 1) there is no way to test it by myself.

And as nobody with such a meter test the PRs it is really no joy to solve this topic.

And not least: The documentation about this from Phoenix and Wallbe is not as clear and correct as it needs to be.

premultiply avatar Jun 17 '25 16:06 premultiply

@k-ham ist this a new issue? What's the last working version?

andig avatar Jun 17 '25 16:06 andig

I have verified that the issue is reproducible with the latest nightly build

...and please give 0.204.3 a try.

andig avatar Jun 18 '25 08:06 andig

0.204.3 has the same issue. I can try the nightly tomorrow afternoon

mk-devs avatar Jun 18 '25 18:06 mk-devs

Please show

evcc charger --log trace,db:error

for working and current version. Closing until available.

andig avatar Jun 18 '25 18:06 andig

The issue with the factor 2 for the energy reading comes form the wallbe-settings When both, the Wh and the kWh registers are configured, evcc reads both and summs the value up. (so in this example 75 kWh + 75050 Wh = 150,5 kWh

The final fix is to configure Wallbe/Comple/Phoenix Wallbox Contoller to have correct energy when both Wh and kWh are summed up. Background Wh and kWh shall only be used together if the energy meter has Wh and kWh register and the Wh register dows only show a max value of 999 Wh and if one more Wh is consumed it says 0 Wh and +1 kWh.

In my case with Energymeter DS100-00B this is not the case and it's only allowed to use the Wh reading see in config below, then the energy reading is correct.: Image

Trace

[ev-eth] TRACE 2025/07/04 12:15:26 modbus: send 02 4e 00 00 00 06 ff 03 0b a4 00 04
[proxy-5021] TRACE 2025/07/04 12:15:26 read holdings: id 255 addr 2980 qty 4
[proxy-5021] TRACE 2025/07/04 12:15:26 read holding: 3ea2000100000000
[ev-eth] TRACE 2025/07/04 12:15:26 modbus: recv 02 4e 00 00 00 0b ff 03 08 3e a2 00 01 00 00 00 00  **--> Now is correct**
[ev-eth] TRACE 2025/07/04 12:15:26 modbus: send 02 4f 00 00 00 06 ff 03 0b a4 00 04
[proxy-5021] TRACE 2025/07/04 12:15:26 read holdings: id 255 addr 2980 qty 4
[proxy-5021] TRACE 2025/07/04 12:15:26 read holding: 3ea2000100000000
[ev-eth] TRACE 2025/07/04 12:15:26 modbus: recv 02 4f 00 00 00 0b ff 03 08 3e a2 00 01 00 00 00 00
[lp-1 ] DEBUG 2025/07/04 12:15:26 charge total import: 81.570kWh

mk-devs avatar Jul 04 '25 09:07 mk-devs

@k-ham could you please show a trace log?

andig avatar Jul 04 '25 09:07 andig

@premultiply haven‘t looked into the code- can we prevent this mistake?

andig avatar Jul 04 '25 10:07 andig

You can read registers and check if its not correcly configured

372 (which is the scaling factor for kWh Reading) 128 (which is the actual reading from energymeter in kWh)

902 (which is the scaling factor for Wh reading) 904 (which is the actual reading from energymeter in Wh)

2890 shows the summed value if 904 * scaling shows a reading > 999 --> the value read in 2890 is probably wrong so it can be checked

(Tested with Wallbe Firmware Version:SL-01.04.21)

mk-devs avatar Jul 04 '25 12:07 mk-devs

I can't follow.

This is the acutal code: https://github.com/evcc-io/evcc/blob/1be58587b967e0803aeb532c6bd1a1991973ef2a/charger/phoenix-ev-eth.go#L195-L212

There is a simple switch. If Wallbe Firmware is detected only the Wh value from register 904 is read and processed in other case just the legacy kWh register.

It does not care about any scaling as the value is defined as Wh or kWh in documentation.

The mistake could only happen at controler config when both registers for kWh and Wh are defined for the attached meter and summed up by the firmware. Just leave the kWh register entry empty.

premultiply avatar Jul 04 '25 20:07 premultiply

Yes as stated above leaving the kWh register empty is the solution. Error handling of this misconfigration could be done.

A different error orrcured after rebooting my debian server, the wallbe selection does not work correnctly, because Register 528 returns value 7 = 0.7A. There must be a better solution, even a hard configuration in yml / expermimental config is better than rely on the target charging current value in 528 beeing higher than 60 = 6.0A

https://github.com/evcc-io/evcc/blob/1be58587b967e0803aeb532c6bd1a1991973ef2a/charger/phoenix-ev-eth.go#L121

mk-devs avatar Jul 10 '25 15:07 mk-devs

Error handling of this misconfigration could be done.

As already stated above: The firmware already sums up the values if not configured correctly, not evcc.

There must be a better solution.

Maybe. But I have not heard of any problems with this simple and compatible detection logic for all the years and I never have seen any issues on my own Wallbe box connected to evcc only.

premultiply avatar Jul 13 '25 13:07 premultiply