I’m in the progress of building an Automation, that can Limit my inverter Output. Based on a difference between grid import/export.
I’ve set up counters, helpers ect. But the big problem now is getting it to work.
The counters counts kWh. The Sliders indicate the Array’s output in percentage. And the current wattage production.
The goal, is to make sure, that in the end of an hour, the Import / export is equal (or as close as possible).
My idea, is to check the difference every 30 seconds, and adjust the output accordingly. The starting point will always be 100%, and the wattage production is current production at 100 efficiency.
So I need a calculation, based on the difference, and current wattage production, to set the array output to match the difference. So if the current difference is eg. 5 kwh, and the array produces 50 Kwh, then it needs to be set @ 10 percent. This calculation will be done every 30 seconds.
Any good ideas how to accomplish this, for now the values are static, since the inverters has not yet been fitted.
Your solution might work. But I think I’ll need more data (exceptions)
When this will be in effect. I’m looking at an hourly import on approx 20 kWh, and a production capacity on approx 800 kWh. So when a difference on 5 Kwh is active. It could take me as little as 1 minute to even the scale. So for instance. If the output is scaled to 1 %, the next comparison, should take into account if the difference was larger or smaller than the previous. And then increase with 1%. Then the next comparison, should do the same, an increase / decrease by 1% again. and then keep going every 30 seconds.
So the solution might be, to start at 1% and then increase until the difference gets smaller, and the decrease until it rises again. Can that be done ?
Perfect. It Now works. Now I have the values I think I need. Current Consumption, current production. (current consumption is import and export combined, so can be positive and negative) and the difference between import and export.
So my idea is.
Look at the Current Import/export (40007_Power_total_all). See if theres a difference in import/export values. If theres too much export. then change the Output from 100% to 1%, and then slowly increase until theres a match between import / export. and then keep the difference to a minimum.
I hope this is described sufficient. The goal is. When the Power prices are Negative. I’ll need to make sure, that I don’t export power (summed pr. hour). this is my best take on how to achieve this, any suggestions is greatly appreciated.