reinhard-brandstaedter / solarflow-control

A tool to automatically control Zendure's Solarflow hub with more flexibility to match home power demand
55 stars 9 forks source link

Additional "MAX_FEED_IN" config #201

Open boennemann opened 2 months ago

boennemann commented 2 months ago

Hey @reinhard-brandstaedter,

thanks for this amazing project.

I'm seeing the MAX_INVERTER_LIMIT variable, but I was wondering whether it's possible to introduce something like a MAX_FEED_IN, too.

What I'm aiming for is something like this:

MAX_INVERTER_LIMIT = 1000 (Let's pretend this is what my inverter supports) MAX_FEED_IN = 600

Now what I'm aiming for is that the inverter would give up to 1000W to the house when we know the house is consuming that. If the load in the house is low and we know we're feeding into the grid the inverter limit should be limited in such a way that only MAX_FEED_IN goes to the grid.

Examples using above config values and assuming we have a full battery and >1kW available:

Load: 1000 Inverter Limit: 1000 Load: 800 Inverter Limit: 1000 (feed in: 200) Load: 400 Inverter Limit: 1000 (feed in: 600) Load: 100 Invert Limit: 700 (feed in: 600)

I hope this makes sense!

Edit:

The more I think about this, the MAX_FEED_IN would also have to be able to look at the phase the inverter is feeding into. E.g. the Shelly would expose this information.

tuxianerDE commented 2 months ago

Hey,

that is in parts a philsophical question :)

What we have done:

The last point basically goes back to the original idea of the "Balkonkraftwerke" that excess energy gets fed into the grid. We wanted to ensure that we maximize the return on investment or any component where a proper steering makes a difference and that is when the solarFlow Hub feeds in energy.

boennemann commented 2 months ago

Hey @tuxianerDE,

thanks for the extensive reply. My suggestion for this flag is coming from the same place I feel like.

My thinking here (and obviously everything I'm describing is all just hypothetical 🤪):

Right now there is a legal limit of 600W feed-in. I'd feel confident to surpass this 600W limit within my own house and on my own risk (I know there is an exclusive line with extra fuse, everything 2,5mm² cables, yadda yadda).

So as long as I'm consuming the energy directly within my own house I'd like to keep the inverter limit higher than 600. If I can't use it up right now (battery full, not at home, no heatpump required etc.) I would want to ensure that I'm feeding a maximum of 600W into the grid on the phase my Balkonkraftwerk is connected to, to not exceed this legal limit.

Does that make sense?