-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Better Support for Solarflow Batteries without Cloud #1221
base: schlimmchen/battery-restructuring
Are you sure you want to change the base?
Draft: Better Support for Solarflow Batteries without Cloud #1221
Conversation
51137eb
to
05c8b89
Compare
Removed accidentally pushed stuff from branch |
I am wondering why we need this PR if there is already support for Zendure Batteries after this PR (#1127) has been merged? Or is that a different way to setup the battery? |
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. |
Initial post completely updated and ready for review |
91cc2fc
to
8ff94e7
Compare
Let's get this ready, shall we? I took the liberty to clean this PR up. Since we let it stew for so long, @vaterlangen had to merge hoylabs/development several times. Rebasing is now impossible, but merging is not an option.
That command is what I used and I have very high confidence in git that it did exactly what I wanted. However, I am unable to force-push to I then started a more in-depth review. There are some oddities:
I started refactoring/updating the code to bring it to a level that I am happy to merge. I did not push that, yet, and will continue shortly. |
@schlimmchen Thanks for driving this forward! No, I did not change anything on the repo settings. I just disabled and re-enabled maintainer edits. Please try again. Thanks for your comments:
Thanks for cleaning my mess up... I also addressed some points an pushed them to |
@schlimmchen Updated to latest dev - the old branch is still available as feature/zendure_solarflow_backup |
We would have merged that already if it wouldn't conflict with your work. So we talked about it again this week and decided to merge the restructure first, as we then can review/fine-tune your work when migrating it to the new structure, in one go. If you could do that yourself, that would be great! Please understand that it is hard to prioritize reviewing other people's work over working on one's own ideas. That is the primary reason this PR (and Niko's in particular) are... neglected. If you would rebase on top of the refactor I would merge your PR without too much scrutiny. |
I'm absolutely fine with it. I'll point this MR to 1451 and set it to draft till I've migrated everything to the new structure. Are there further updates on 1451 expected, I should wait for before starting? |
Nope, please go ahead. We were waiting to merge it as I wanted to let it settle in that this is what we want and and how we want it. Also, I did not want it to become part of the latest releases yet. I think now is a good time to just do it. We already have the solar charger integration restructured based in the same scheme. |
11f726f
to
6d1cc39
Compare
6d1cc39
to
ad43b6e
Compare
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. If one can adjust answers on DNS queries (e.g. using OpenWRT as router), Solarflow can also be "disconnected from cloud" by returning the local broker IP for requests to
mqtteu.zen-iot.com
. The broker should be configured without authentication - or one has to gather the username passoword used by Solarflow.Features
Main Page with battery data read from Solarflow
Configuration of new battery provider
Testing
Tested with my local setup consisting of