-
Notifications
You must be signed in to change notification settings - Fork 107
Add device und component modules for Solakon One battery #3014
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
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
|
PS: The WebUI still needs to be added for this device. |
LKuemmel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Danke für Deinen PR.
UI habe ich erstellt: openWB/openwb-ui-settings#861
| # 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die openWB benötigt den Gesamtzählerstand. Gibt es da ein Register für?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ja, ich habe die Registernummern der drei Tageszähler in die der Gesamtzähler geändert
| # Gesamte DC PV Tagesproduktion in Wh | ||
| exported = self.client.read_holding_registers(39603, ModbusDataType.UINT_32, unit=unit) * 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
siehe oben
|
erledigt, Registernummern auf Gesamtzählerstände geändert. |
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.