uni-meter icon indicating copy to clipboard operation
uni-meter copied to clipboard

power offset

Open jwatzk opened this issue 11 months ago • 2 comments

Sorry to ask here, but it's not clear to me if the offset it working the same for power export and import from grid (+/-)?

jwatzk avatar Dec 07 '25 09:12 jwatzk

Hi, a late reply, but I was busy the last week:

Yes, the offset is working in both cases (import/export to/from grid) exactly the same. The offset is always applied in the following way:

output-value = input-value + offset.

were negative input-values mean an export to the grid and positve values an import from the grid.

So if you configure for instance a offset value of +10W, the storage will try to bring that virtual output value to 0, which leads to a permanent real export of 10W.

sdeigm avatar Dec 13 '25 11:12 sdeigm

@jwatzk I am setting the offset dynamically depending if I am in charge or discharge mode. I use the following enum in my code which might help for understanding:

enum Direction {
    NoChange = 0,
    AvoidFeedIntoGrid = -20,  // avoid discharge battery energy into grid (usually at night)
    AvoidPullFromGrid = 20  // avoid charge battery from grid
};

Matze2 avatar Dec 14 '25 10:12 Matze2