-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Sofar: Support for multiple, individual storage units #19240
Sofar: Support for multiple, individual storage units #19240
Conversation
Hier der change zu individuellen Storage Units. Wäre Klasse, wenn Du das testen könntest, wenn es im nächsten Nightly nach dem Merge drin ist. |
@andig, @premultiply - um den Breaking Change zu vermieden könnte man den default der storageunit auf 0 setzen, was dann die Total Values nehmen würde. Siehe auch #19219 (comment) wo man das für den PV Eingang ähnlich handeln kann. Was meint ihr? Ich habe nur Bauchschmerzen, dass ich es nicht hinbekomme das lokal zu testen. Habe den decontainer am laufen aber nach dem erfolgreichen
|
Es sollte der Defaultwert ziehen- kein böser BC. |
Ja - hier nicht schlimm. Scheint aktuell ja nur einen Nutzer zu treffen. Bei der PV wäre das schlimmer und dachte falls man es dort machen will, könnte man es hier auch tun. |
@@ -133,23 +139,47 @@ render: | | |||
source: modbus | |||
{{- include "modbus" . | indent 2 }} | |||
register: | |||
address: 0x0667 # Power_Bat_Total | |||
{{- if eq .storageunit "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.
Mir fällt grad noch auf- hänge ich aber nicht dran- dass man auch einfach
base + (unit - 1) * 7
machen könnte ;)
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.
Das wäre dann bei SQL eine SQL Injection ;-)
Aber "else if" scheint durchgelaufen zu sein.
@cschlipf : FATAL 2025/02/28 16:16:23 meter [sofar-battery-2] cannot create meter 'sofar-battery-2': cannot create meter type 'template': invalid key: storageunit hab ich da nicht die nightly version, in den das Feature mit den 2 Units schon drin ist? wie kann ich auf die richtige version checken? - Sorry bin nicht so erfahren mit github... |
@ep4711 Das wurde erst heute morgen gemerged, wird also erst morgen im Nightly drin sein. |
Vielen Dank für's testen |
Closes #19219
BREAKING CHANGE
Does no longer support one single meter entry for all storage units. Instead users need to configure separate meters with different storage units like this:
Advantage: We are back to an accuracy of 10W instead of 100W