Skip to content

Solarbank 2 Output Power target control#27

Open
jul1an-s wants to merge 4 commits into
flip-dots:solarbankfrom
jul1an-s:solarbank
Open

Solarbank 2 Output Power target control#27
jul1an-s wants to merge 4 commits into
flip-dots:solarbankfrom
jul1an-s:solarbank

Conversation

@jul1an-s

Copy link
Copy Markdown

This allows setting the Grid output target power from HA:

image

Added:

  • Exposes SolixBLE set_schedule(power_w) Solarbank 2 Schedule/Power control SolixBLE#36 as a user-facing control.
  • Number entity (0-800 W, 10 W step, slider) stages the target value
  • Apply button to commit it to the device.
  • Last value restored across HA restarts via RestoreEntity.
  • Library errors surface as HomeAssistantError so they show as UI notifications.
  • Add Solarbank 2 to README supported devices list
  • Added automated tests for SB2 control

Bugfix

  • Fixed a failed automated test due to renaming a sensor in a previous commit.

Tests

Pytest

75 passed (100%)

Manual

Controls show up in HA, I can control the Device from the Dashboard 🎉

Version increment

Not done yet, release decision is up to @flip-dots

jul1an-s added 4 commits May 21, 2026 11:02
- Exposes SolixBLE set_schedule(power_w) flip-dots/SolixBLE#36 as a user-facing control.
- Number entity (0-800 W, 10 W step, slider) stages the target value;
- Apply button to commit it to the device.
- Last value restored across HA restarts via RestoreEntity.
- Library errors surface as HomeAssistantError so they show as UI notifications.
- No Version increment yet -> Maintainer
- Add Solarbank 2 to README supported devices list
- Added unit tests
@flip-dots

Copy link
Copy Markdown
Owner

Damn awesome work, I dont have the time at the moment to properly review it and do a release as I still have a few weeks of exams left but I will sort it out as soon as I can, sorry :(

@jul1an-s

Copy link
Copy Markdown
Author

Thanks :-)
No worries, take your time! I'm a little bit wary whether we should release it in the current state to HACS anyways because I'm afraid repeated uses could wear out the persistant memory on the SB2 microcontroller over time.
So take your time, review it and decide whenever you're ready.

I wanted to look into Smartmeter mode to mitigate this memory topic, but currently I'm super busy as well and I've spent way too much time on this project for this year :D

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.

2 participants