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

[Request] Publish load corrected voltage via MQTT #399

Open swingstate opened 1 year ago

swingstate commented 1 year ago

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

Feature request:

I would like to track the difference between the measured DC voltage at the inverter channels and the calculated corrected voltage, to optimise the calculation. Ideally in HA, so data should be published via MQTT.

I appears to me that a different factor seems to be suitable depending on load, SOC/Voltages. To understand that better, a possibility to monitor these values would be appreciated.

Describe the solution you'd like

Publish the data via MQTT as follows:

loadcorrectedVoltage under $invertername$/dc/lc_dc

load correction factor under $invertername$/dc/lc_f

Describe alternatives you've considered

No response

Additional context

No response

schlimmchen commented 2 months ago

The load-corrected voltage is not inverter-specific. Would this work:

Publish at .../powermeter/status/:

schlimmchen commented 1 day ago

Depends on #1431, as otherwise this would need to be implemented in an unacceptable manner (buried in the DPL code which should only be concerned with calculations and decisions, not publishing to MQTT).