AIUI, eco mode aims to balance import and export, to give net zero grid activity. My suggestion is to add a parameter to allow the balance point to be configured to something other than zero. It seems like it ought to be a fairly trivial change: just compare the measured power flow against a register value, rather than constant 0.
Justification: With flux, it may be desirable to configure the system to discharge the battery to the grid during the peak period. But I think that can currently only be done by changing mode, so that the battery is discharging at a fixed rate. Suppose I wanted to export 1kW from the battery during this period. But if I turn the kettle on, this fixed rate might not be enough to power the kettle, and so I might end up importing the balance from the grid, which is the last thing I want to do. So what I really want is to still have eco mode running, turning the discharge rate to take total demand into account, where total demand now includes preferred discharge rate.
The thing that needs some additional refinement is how PV should be taken into account. I think it's really a targeted discharge I'm after, rather than a targeted export. ie if PV is generating 2kW, I'd still like to aim for 1kW of battery discharge, giving a total of 3kW export. Or perhaps rather than calling it a targeted discharge rate, I should call it a minimum discharge rate, but eco mode can still request more if, say. I turn the kettle on. Is this making any sense ?
Long term, it would be nice to have this as a timed feature (ie between 16:00 and 19:00 I want min discharge to be 1kW), but I think for initial testing, it would be sufficient that this can be set externally by an agent such as HA.
Thoughts ?
