hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

[DPL] Overscaling: Support for HMT inverters #1286

Open vaterlangen opened 1 week ago

vaterlangen commented 1 week ago

This MR adds support for inverters, having multiple channels sharing one MPPT. This is achieved by combining all channels assigned to one MPPT before calculating any correction factors. The assignment between channels and MPPTs is added directly to the converter definition. For all inverters, that are already supported today, there should be no functional change, as the numb er of channels per MPPT is exactly one. The assignment of channel(s) to MPPT is currently calculated on every call - but I can also add some kind of caching for that.

If this approach is fine for you, I would try to get the changes of the Hoymiles library merged into the parent project.

I'm running custom build with these changes in my own setup (single HMT-2250) since a few days - and DPL seems to be stable.

@schlimmchen The MR targets your branch from #1216