Add device und component modules for Solakon One battery#3014
Merged
LKuemmel merged 20 commits intoopenWB:masterfrom Dec 8, 2025
Merged
Add device und component modules for Solakon One battery#3014LKuemmel merged 20 commits intoopenWB:masterfrom
LKuemmel merged 20 commits intoopenWB:masterfrom
Conversation
This modules can read the battery power and soc as well as the total PV power of a Solakon One
Im- and export of DC energy in Wh added (charging / discharging of battery pack)
Daily DC PV production added
obsolete spaces removed
Contributor
Author
|
PS: The WebUI still needs to be added for this device. |
LKuemmel
requested changes
Dec 5, 2025
Contributor
LKuemmel
left a comment
There was a problem hiding this comment.
Danke für Deinen PR.
UI habe ich erstellt: openWB/openwb-ui-settings#861
Comment on lines
36
to
39
| # tägliche DC Ladung der Batterie in Wh | ||
| imported = self.client.read_holding_registers(39607, ModbusDataType.UINT_32, unit=unit) * 10 | ||
| # tägliche DC Entladung der Batterie in Wh | ||
| exported = self.client.read_holding_registers(39611, ModbusDataType.UINT_32, unit=unit) * 10 |
Contributor
There was a problem hiding this comment.
Die openWB benötigt den Gesamtzählerstand. Gibt es da ein Register für?
Contributor
Author
There was a problem hiding this comment.
ja, ich habe die Registernummern der drei Tageszähler in die der Gesamtzähler geändert
Comment on lines
31
to
32
| # Gesamte DC PV Tagesproduktion in Wh | ||
| exported = self.client.read_holding_registers(39603, ModbusDataType.UINT_32, unit=unit) * 10 |
Contributor
Author
|
erledigt, Registernummern auf Gesamtzählerstände geändert. |
LKuemmel
approved these changes
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Solakon One consists mainly of a 2.1 kWh battery, an inverter and four MPPTs for PV modules. It can be used as a stand alone "Steckersolargerät". Besides the generally needed modules vendor.py, config.py and device.py there are two component modules.
bat.py provides the AC power at the AC plug, the SoC of the battery and the daily DC charging und discharging energies of the battery.
inverter.py provides the total DC power of the PV modules/MPPTs und the daily DC PV production.
The relevant Modbus registers have been taken from
https://github.com/solakon-de/solakon-one-homeassistant-internal/blob/main/stuff/modbud-doc.pdf
The whole set of modules was tested on a Raspberry Pi 3 with a fresh raspbian bullseye lite, current OpenWB 2.1.9 installation and a Solakon One battery. The bat.py module provided correct live data. The inverter.py module was running without error but zero values due to not connected PV modules.
Configure the inverter component "below" the battery component.