Skip to content
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

sonnenBatterie: add battery control (APIv2) #11990

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

rivengh
Copy link
Contributor

@rivengh rivengh commented Feb 1, 2024

This PR introduces active battery control for sonnenBatterie via official sonnenBatterie JSON APIv2.

To use active battery control, the "JSON Write API" must be activated via the sonnenBatterie web interface (under Software-Integration).

This modification has been tested with my sonnenBatterie eco8.

Notes on my implementation:

  • This adds a new token parameter to the battery template as parameter. It is classified as optional and is only required if active battery control shall be used. This API token can be retrieved from the sonnenBatterie web interface (under Software-Integration)
  • Following batterymode is only rendered when the token parameter is set
  • For now case: 3 (charge) has the same behavior as case: 1 (normal), as this mode is currently not used.

@andig
Copy link
Member

andig commented Feb 1, 2024

LGTM

@andig andig added the devices Specific device support label Feb 1, 2024
@andig andig merged commit 1283612 into evcc-io:master Feb 1, 2024
6 checks passed
@rivengh rivengh deleted the sonnenbatterie-add-battery-control branch February 2, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants