-
Notifications
You must be signed in to change notification settings - Fork 107
[ADD] Integration Battery Index for SolarEdge Batteries #2236
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
|
|
||
| class SolaredgeBatConfiguration: | ||
| def __init__(self, modbus_id: int = 1): | ||
| def __init__(self, modbus_id: int = 1, battery_index: int = 1): |
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.
Bei bestehenden SolarEdge-Speichern fehlt die Einstellung battery_index, diese muss in der Konfiguration noch ergänzt werden. Analog zu hier:
core/packages/helpermodules/update_config.py
Line 1872 in c12eae8
| def upgrade_datastore_68(self) -> None: |
Außerdem in Z. 54 die DATASTORE_VERSION um eins hochzählen und deine Funktion ans Ende der Datei setzen und die Versionszahlen analog zu den anderen Funktionen hochzählen. Beim Starten wird die DATASTORE_VERSION geprüft und wenn diese nicht aktuell ist, die Funktionen ausgeführt und so die Konfiguration geupdatet.
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.
Es fehlt noch eine neue Methode in der update_config.py, die bei bestehenden Speichern den battery_index ergänzt.
|
Ich baue gerade an der Speichersteuerung für SolarEdge (#2258). |
Hi @cr0i, deine Erweiterung habe ich bereits gesehen und bin auch sehr interessiert dies mal auszuprobieren. Im einfachsten Fall ist nur ein Wechselrichter und eine Batterie vorhanden -> Set PowerLimit wird wie berechnet gesetzt. Vielleicht lässt man den letzten Case erstmal außenvor aber man sollte drüber nachdenken :) |
Das DischargeLimit bzw. der "Sperrmodus" im Wechselrichter ist unabhängig von Battery1 oder 2. |
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.
Kannst Du bitte ein Rebase auf den Master machen?
Using new registers and offset
Co-authored-by: LKuemmel <76958050+LKuemmel@users.noreply.github.com>
Fix missing batter_index
|
@LKuemmel rebase wurde durchgeführt und die "update_config.py" nochmal angepasst. |
|
Hallo @snoerenberg , ich habe in einer SolarEdge HA Integration gesehen, dass dort sogar 3 Batterien möglich wären, ob das stimmt, kann ich natürlich nicht sagen: In der info.md sieht es wiederum nicht so aus: |
|
@cr0i die Dokumentation von SolarEdge selber, enthält auch nur Batterie 1 und 2.
Ich denke, da handelt es sich um eine falsche Implemenetierung bei HA. |

openWB/openwb-ui-settings#654
Details:
https://forum.openwb.de/viewtopic.php?t=9875
Uses new registers from solaredge specification.
https://forum.iobroker.net/assets/uploads/files/1709136209375-decimal-power-control-open-protocol-for-solaredge-inverters.pdf
Similar to the handling here:
https://github.com/WillCodeForCats/solaredge-modbus-multi/blob/main/custom_components/solaredge_modbus_multi/const.py#L159