evcc icon indicating copy to clipboard operation
evcc copied to clipboard

iDM: Surplus power is transmitted with wrong sign (export values always positive)

Open 7weazel7 opened this issue 3 months ago • 1 comments

Describe the bug

Problem

I already tried to address this topic previously:

  • Issue: #33228
  • PR: #33222

After a discussion with iDM support, they confirmed that the surplus values currently provided by evcc are incorrect.

The issue is that surplus/export values are transmitted only as positive values. As a result, iDM cannot correctly distinguish between grid import and grid export.

Impact

This causes incorrect behavior on the iDM side:

  • The power flow diagram in the iDM Energy Management System is displayed incorrectly.
  • Grid export and grid import cannot be distinguished.
  • Energy flow direction information gets lost.

Expected Behavior

evcc should provide the surplus/grid power value with the correct sign according to the iDM interface specification.

Example:

  • Positive value = Grid import
  • Negative value = Grid export

(or vice versa, depending on the interface definition)

The important point is that import and export must be distinguishable by the sign of the transmitted value.

Actual Behavior

The surplus value transmitted by evcc is always positive.

As a result, iDM cannot determine the actual direction of energy flow and therefore displays the energy flow diagram incorrectly.

Validation

I had a call with iDM support and discussed the implementation in detail.

They confirmed that the values currently received from evcc are not transmitted as expected and that this is the reason why the power flow diagram is displayed incorrectly on the iDM side.

Why I Believe This Is a Bug

In my opinion, this is not a feature request but a bug in the current data mapping.

The sign of the power value contains essential information about the direction of energy flow. By always transmitting positive values, this information gets lost before it reaches iDM.

Even if evcc itself does not require the signed value internally, external systems such as iDM rely on it to correctly interpret import and export situations.

I would therefore appreciate a reconsideration of the previous discussion and classification of this topic as a bug rather than a feature request.

Additional Enhancement

While reviewing the integration, it would also be great to achieve a more complete iDM integration in evcc.

Currently, only a subset of the available information is exchanged between both systems. If additional values supported by the iDM interface were also exposed and transmitted, users could benefit from a more complete and consistent integration.

This is independent from the sign issue described above and should be considered an enhancement rather than a bug.

However, resolving the sign issue would already fix the incorrect energy flow representation and ensure that the currently transmitted data is interpreted correctly by iDM.

Steps to reproduce

Configuration details

-

Log details

-

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

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

Version

No response

7weazel7 avatar Aug 31 '26 06:08 7weazel7

There were quite a few IDM discussions in the last days where users confirmed integration is working. So what's different about your IDM?

andig avatar Aug 31 '26 06:08 andig