Fabian-Schmidt / esphome-victron_ble

Use official Victron BLE endpoint for fetching data from Victron devices via Bluetooth LE via ESPHome.
GNU General Public License v3.0
152 stars 15 forks source link

BatMon HomeAssistant-Integration #8

Closed snipah closed 1 year ago

snipah commented 1 year ago

Hi Fabian!

Kurze Frage: Ich bin zufällig auf batmon gestoßen. Leider erfolgt der Connect zum Shunt nur sehr unzuverlässig, was mir aber gut gefallen hat, war die Integration in das Energy Dashboard des Home Assistant.

Wäre es möglich, das in ähnlicher Form in deine Implementierung einzubauen?

https://github.com/fl4p/batmon-ha

Fabian-Schmidt commented 1 year ago

Wie wird das batmon-ha in das Energy Dashboard eingebunden? Ich sehe keine Hinweise in der Readme oder dem quellcode.

snipah commented 1 year ago

Batmon implements energy metering by integrating the power values from the BMS with the trapezoidal rule. You can add theses meters to your Home Assistant Energy Dashboard. The accuracy depends on the accuracy of the voltage and current readings from the BMS. Consider these having an error of 2~5%. Some BMS do not detect small currents (<200mA) and can miss high frequency peaks, leading to even greater error.

Total Energy Discharge Meter: total Energy out of the battery (increasing only, use this for the Energy Dashboard) Total Energy Charge: total Energy into the battery (increasing only, use this for the Energy Dashboard) Total Energy: The total energy flow into and out of the battery (decreasing and increasing). This equals to (Total Energy Charge) - (Total Energy Discharge). Total Cycles: Total full cycles of the battery. One complete discharge and charge is a full cycle: SoC 100%-0%-100%. This is not a value provided by the BMS, but Batmon computes this by differentiating the SoC (e.g. integrate(abs(diff(SoC% / 100 / 2)))).

Fabian-Schmidt commented 1 year ago

Yes I did read this text, but for a SmartShunt it does make little sense to me. The SmartShunt is a very accurate integrate of the power. I would argue thats the hole function of the product. So they do an poor integrate (over BT) over an accurate integrate (SmartShunt itself)?

And what is the meaning of these three Total Energy values. My understanding is the only important number is the State of Charge. Do I have juice in the battery or not. It is not helpful to know I had 1000 KWh over the last year if the battery is empty right now. Or am I missing something here?

snipah commented 1 year ago

Ok. I agree!