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

Better Support for Solarflow Batteries without Cloud #1221

Open vaterlangen opened 1 month ago

vaterlangen commented 1 month ago

This MR adds a new battery provider (index 7) to support Zendure Solarflow batteries using local MQTT broker.

Preconditions

In order to use this integration, the Solarflow system has to be "disconnected from cloud" (aka. configured to use the local MQTT broker instead of the pre configured vendor cloud). Please refer https://github.com/reinhard-brandstaedter/solarflow-bt-manager for details.

Features

Main Page with battery data read from Solarflow

grafik

Configuration of new battery provider

grafik

Testing

Tested with my local setup consisting of

vaterlangen commented 1 month ago

Removed accidentally pushed stuff from branch

AndreasBoehm commented 3 weeks ago

I am wondering why we need this PR if there is already support for Zendure Batteries after this PR (https://github.com/helgeerbe/OpenDTU-OnBattery/pull/1127) has been merged? Or is that a different way to setup the battery?

vaterlangen commented 3 weeks ago

With this PR, all battery data is read and displayed (as shown in the screenshot) - not only voltage and soc as implemented by #1127.It iis intended for Solarflow instances, that are not connected to the vendor cloud (but using local MQTT broker, as this requires sending some commands to the device, too) and not using the vendor App. On the settings page, one can already adjust some parameters, as maximum output power and soc limits.

As I discovered a better way to read data from the device, I'm currently reworking the code.

vaterlangen commented 3 weeks ago

Initial post completely updated and ready for review