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
317 stars 66 forks source link

[Request] Get value for PV power via MQTT #457

Open stanpete78 opened 1 year ago

stanpete78 commented 1 year ago

### Is your feature request related to a problem? Please describe.

The way it is now, you have to wire a Victron Charger to the DTU in order to get its values for PV power production and to be able to use solar passtrough. So if you need to use two chargers (east/west, for example) you can't fully utilize the potential of openDTU-onbattery.

### Describe the solution you'd like

It would be beneficial if you could calculate the total PV power separately and have the DTU use this external value. This would instantly allow the use of multiple chargers and also chargers other than victron. And all this without more GPIOs, more CPU cycles. It would be scalable basically for free.

### Additional context

The preferred way I'd do this with my 100/20 Victrons would be to attach an ESP with KinDR007/Victron-MPPT-ve.direct-to-MQTT to each of the Victrons and either have Home Assistant calculate the value, or better, have openDTU-onbattery just read and add the values by itself.

iamdevnull commented 1 month ago

@schlimmchen kann man theoretisch damit rechnen, dass der DPL Mode 2 ((Full) Solar-Passthrough - gemäß https://opendtu-onbattery.net/firmware/solar_passthrough/#solar-passthrough-is-off ) auf Basis von MQTT ermittelten Daten arbeiten könnte beim nächsten Release. Falls ja, kannst eine zeitlich Prognose vielleicht geben. Vielen Dank.

Bei mir stehen z.B wie folgt die Daten bereit:

image

AndreasBoehm commented 1 month ago

@iamdevnull Ich hab vor ein paar Wochen damit angefangen das feature MPPT Daten via MQTT zu implementieren. Dafür ist eine sehr umfangreiche anpassung des aktuellen MPPT codes nötig, das wird sich noch ein bisschen ziehen. Ein Datum oder eine Prognose kann ich dir nicht geben.