Skip to content

Add support for Solarbank 2#23

Open
flip-dots wants to merge 24 commits into
mainfrom
solarbank
Open

Add support for Solarbank 2#23
flip-dots wants to merge 24 commits into
mainfrom
solarbank

Conversation

@flip-dots

@flip-dots flip-dots commented Apr 13, 2026

Copy link
Copy Markdown
Owner

I might also add support for the Solarbank 3 in this PR or I might do that later.

This is using the latest SolixBLE with the changes from this PR which adds propper support for devices like the solarbank which was raised under this issue.

This branch was created from the Anker prime branch which I intend to merge first so not all of the changes shown are from this branch/PR.

@jul1an-s

jul1an-s commented Apr 20, 2026

Copy link
Copy Markdown

Looking good!
Running through an ESPHome ESP32 Bluetooth proxy

image

I'll poke around a little bit and will let you know if I encounter any issues.

Edit:
This is f****** amazing :D Thank you so much for this project :D

@jul1an-s

jul1an-s commented Apr 20, 2026

Copy link
Copy Markdown

Just love it when OpenSource stuff outperforms proprietary software.

image

I'd propose to rename "Battery output energy". This is misleading. It should be "total output energy". If you bypass the battery and directly feed the grid it can be much higher than battery input energy, which is weird ;-)

jul1an-s and others added 2 commits April 20, 2026 16:03
 Renamed output_energy Sensor to account for energy bypassing the battery
@siegmund42

siegmund42 commented May 26, 2026

Copy link
Copy Markdown

Hi there, I just wanted to give this branch a try since I am annoyed by the very infrequent cloud updates. Connection seems to work fine, but all values are displayed as "unavailable". HA Debug logging gives the following every 3s:

2026-05-26 11:45:43.012 DEBUG (MainThread) [SolixBLE.device] Received notification from 'Solarbank 2 E1600 Pro'. length: 26, packet: 'ff091a0003010f44099f7517bc1973f1eaa1983644ea860275cc'
2026-05-26 11:45:43.012 DEBUG (MainThread) [SolixBLE.device] Pattern: 03010f
2026-05-26 11:45:43.012 DEBUG (MainThread) [SolixBLE.device] CMD: 4409
2026-05-26 11:45:43.013 DEBUG (MainThread) [SolixBLE.device] Payload: 9f7517bc1973f1eaa1983644ea860275
2026-05-26 11:45:43.013 DEBUG (MainThread) [SolixBLE.device] Payload length: 16
2026-05-26 11:45:43.013 DEBUG (MainThread) [SolixBLE.device] Received unknown message of type: 4409
2026-05-26 11:45:43.013 DEBUG (MainThread) [SolixBLE.device] Decrypted payload: a10131a2020100a3020164
2026-05-26 11:45:43.013 DEBUG (MainThread) [SolixBLE.device] Parameters: {
    "a1": {
        "bytes": "b'1'",
        "hex": "31",
        "int": "0",
        "uint": "0"
    },
    "a2": {
        "bytes": "b'\\x01\\x00'",
        "hex": "0100",
        "int": "0",
        "uint": "0"
    },
    "a3": {
        "bytes": "b'\\x01d'",
        "hex": "0164",
        "int": "100",
        "uint": "100"
    }
}

Do you have any hint on what I'm doing wrong or missing here?

@siegmund42

Copy link
Copy Markdown

Nevermind, Solarbank was still connected in the app. Works absolutely fine after removal!

@jul1an-s

Copy link
Copy Markdown

Yep, SB2 accepts only a single connection at a time. Glad you got it to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants