-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Loadpoint: add battery boost (experimental) #16599
Conversation
Boost flag should be reset on disconnect. |
Yes. I would prefer, if bufferSoc would be respected
No. I guess, 100W grid consumption is a good choice for that feature. |
I wouldn't tie it to bufferSoc. In my use cases I want to activate boost when I want to move energy from battery to the car quickly before I leave during the day. Knowing that the battery will charge back up from solar later. Maybe even discharge to 0% if i know it's a sunny day. This is not the way I use bufferSoc. For me, bufferSoC acts as the home battery soc goal I want to reach at the end of each day. I'd think we should introduce a dedicated (optional, default 0%) boost-limit which can be configured per loadpoint or set selected when activating boost. |
Leave as-is for testing. Final decision when adding UI. |
Did a first test with my setup (tesla, go-e, sungrow battery).
Here is log and a screenshot evcc-20241012-144921-debug.log |
boost is always 1p-minPower (1380W) independent of active phases? |
bzgl. bufferSoc: Es kann natürlich auch ein separates boost limit sein.
|
Gerade mit dem Nightly getestet. Sieht gut aus. Hat schnell die Max-Entladeleistung erreicht und Phasen korrekt gewechselt. |
Hallo zusammen,
Danach habe ich den Boost deaktiviert und wieder aktiviert.
(Fronius Gen24 Plus, BYD HVS, go-echarger) |
Könntest Du mal bitte nur die relevanten Teile exportieren- site und den lp? |
Ich komme leider am die Daten nicht mehr ran. Fürs nächste Mal weiß ich das nur die beiden relevant sind. |
Mhhm, das ist tricky:
Ich denke er schaltet nicht auf 3p weil wir es mit den 230W nicht schaffen, ihn über die 3p Schwelle von 4,2kW zu kicken. Beim zweiten mal klappt das weil er schon lädt und ihm das "enable" nicht den Timer klaut:
Ich sehe aus dem Log leider nicht, warum der Einschaltfall diesen Weg nimmt. Eigentlich (tm) sollte er hier auch gleich die Phasen mit setzen. |
Wenn es möglich ist die Phasen automatisch richtig zu setzen wäre das super, falls nicht: |
Das sollte funktionieren. Würdest Du nochmal einen Test machen wenn ich ein bisschen Logging ergänze? |
Klar |
Nightly in 20min- danke! Dann bitte nochmal ab "lädt nicht", nur für den lp reicht. |
Das Verhalten war reproduzierbar. Ich hab mal einen Vorschlag für die Doku gemacht: Update battery.mdx #643 . Wenn das so passt erstelle ich es auch noch auf Englisch - wenn ich hier mehr Chaos verursache als es hilft lasst es mich wissen. Noch eine Frage:
|
Nachtrag: wenn das Fahrzeug schon lädt, funktioniert es optimal wie gewollt: er geht sofort auf drei Phasen und findet schnell sein Optimum
|
Leider hab ich im Log was vergessen. Es scheint aber, als würde er nicht nur die Phasen nicht umschalten sondern gar nicht in die Umschaltroutine rein gehen:
Das könnte hier passieren wenn innerhalb der letzten 60s schon umgeschaltet wurde. Kannst Du ausschließen, dass das der Fall ist? Dann müsste ich nochmal Logging ergänzen. |
zum jetzigen Zeitpunkt möchten wir nicht noch mehr Settings. Zumindest nicht bis endgültig klar ist wo wir das im UI platzieren wollen. |
Feedback:
Die Wallbox kann nur 1A Schritte. |
Wenn deine Batterie nicht hinterher kommt passt das |
ok. dann probier ich mal mehr als 30s |
Ich bin ziemlich sicher, dass er vorher nur von nicht laden zu 1p laden gewechselt hat - es fand kein 1p/3p phasenwechsel statt |
Das ist wirklich komisch denn er muss die Funktion aufrufen, Dein Log zeigt aber nix davon. Habe nochmal Logging ergänzt, Nightly in 20min. Die Ursache sollte sich finden lassen... |
Jetzt hat alles bestens funktioniert logs```[lp-1 ] DEBUG 2024/10/20 21:10:09 charger status: B [lp-1 ] DEBUG 2024/10/20 21:10:24 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:10:24 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:10:32 set charge mode: pv [lp-1 ] DEBUG 2024/10/20 21:10:32 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:10:32 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:10:32 charge total import: 1607.201kWh [lp-1 ] DEBUG 2024/10/20 21:10:32 charger status: B [lp-1 ] DEBUG 2024/10/20 21:10:32 !! pvScalePhases DOWN activePhases: 3, available power: -313W, scalable: true [lp-1 ] DEBUG 2024/10/20 21:10:32 available power -313W < 4140W min 3p threshold [lp-1 ] DEBUG 2024/10/20 21:10:32 phase scale1p in 0s [lp-1 ] DEBUG 2024/10/20 21:10:32 switched phases: 1p [lp-1 ] DEBUG 2024/10/20 21:10:32 phase timer inactive [lp-1 ] DEBUG 2024/10/20 21:10:32 pv charge current: 0A = 0A + -1.36A (313W @ 1p) [lp-1 ] DEBUG 2024/10/20 21:10:32 pv enable timer reset [lp-1 ] DEBUG 2024/10/20 21:10:32 pv timer inactive [lp-1 ] DEBUG 2024/10/20 21:10:34 set battery boost: true [lp-1 ] DEBUG 2024/10/20 21:10:34 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:10:34 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:10:34 charge total import: 1607.201kWh [lp-1 ] DEBUG 2024/10/20 21:10:34 charger status: B [lp-1 ] DEBUG 2024/10/20 21:10:34 pv charge battery boost: -11352W = -312W battery - 11040W boost [lp-1 ] DEBUG 2024/10/20 21:10:34 !! pvScalePhases phasesSwitched: 2024-10-20 21:10:32.375274404 +0200 CEST m=+9118.843093989, 2.187399122s [lp-1 ] DEBUG 2024/10/20 21:10:34 pv charge current: 48A = 0A + 48A (-11039W @ 1p) [lp-1 ] DEBUG 2024/10/20 21:10:34 site power -11039W <= -1299W enable threshold [lp-1 ] DEBUG 2024/10/20 21:10:34 pv enable in 0s [lp-1 ] DEBUG 2024/10/20 21:10:34 pv enable timer elapsed [lp-1 ] DEBUG 2024/10/20 21:10:34 max charge current: 6A [lp-1 ] DEBUG 2024/10/20 21:10:34 charger enable [lp-1 ] DEBUG 2024/10/20 21:10:34 wake-up timer: start [lp-1 ] DEBUG 2024/10/20 21:10:39 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:10:39 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:10:54 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:10:54 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:10:54 charge total import: 1607.201kWh [lp-1 ] DEBUG 2024/10/20 21:10:54 charger status: B [lp-1 ] DEBUG 2024/10/20 21:10:54 pv charge battery boost: -11362W = -322W battery - 11040W boost [lp-1 ] DEBUG 2024/10/20 21:10:54 !! pvScalePhases phasesSwitched: 2024-10-20 21:10:32.375274404 +0200 CEST m=+9118.843093989, 22.576769429s [lp-1 ] DEBUG 2024/10/20 21:10:54 pv charge current: 48A = 0A + 48A (-11039W @ 1p) [lp-1 ] DEBUG 2024/10/20 21:10:54 pv timer reset [lp-1 ] DEBUG 2024/10/20 21:10:54 pv timer inactive [lp-1 ] DEBUG 2024/10/20 21:10:55 max charge current: 16A [lp-1 ] DEBUG 2024/10/20 21:11:09 charge power: 3515W [lp-1 ] DEBUG 2024/10/20 21:11:09 charge currents: [15.5 0 0]A [lp-1 ] DEBUG 2024/10/20 21:11:24 charge power: 3511W [lp-1 ] DEBUG 2024/10/20 21:11:24 charge currents: [15.6 0 0]A [lp-1 ] DEBUG 2024/10/20 21:11:39 charge power: 3511W [lp-1 ] DEBUG 2024/10/20 21:11:39 charge currents: [15.6 0 0]A [lp-1 ] DEBUG 2024/10/20 21:11:39 charge total import: 1607.231kWh [lp-1 ] DEBUG 2024/10/20 21:11:39 charger status: C [lp-1 ] DEBUG 2024/10/20 21:11:39 charge start energy: 1607.231kWh [lp-1 ] INFO 2024/10/20 21:11:39 start charging -> [lp-1 ] DEBUG 2024/10/20 21:11:39 wake-up timer: stop [lp-1 ] DEBUG 2024/10/20 21:11:39 soc estimated: 62.00% (vehicle: 62.00%) [lp-1 ] DEBUG 2024/10/20 21:11:39 vehicle soc: 62% [lp-1 ] DEBUG 2024/10/20 21:11:39 vehicle soc limit: 100% [lp-1 ] DEBUG 2024/10/20 21:11:39 vehicle range: 232km [lp-1 ] DEBUG 2024/10/20 21:11:39 pv charge battery boost: -15014W = -3974W battery - 11040W boost [lp-1 ] DEBUG 2024/10/20 21:11:39 !! pvScalePhases DOWN activePhases: 1, available power: 14538W, scalable: false [lp-1 ] DEBUG 2024/10/20 21:11:39 !! pvScalePhases UP maxPhases: 3, available power: 14538W, scalable: true [lp-1 ] DEBUG 2024/10/20 21:11:39 available power 14538W > 4140W min 3p threshold [lp-1 ] DEBUG 2024/10/20 21:11:39 phase scale3p in 0s [lp-1 ] DEBUG 2024/10/20 21:11:39 switched phases: 3p [lp-1 ] DEBUG 2024/10/20 21:11:39 phase timer inactive [lp-1 ] DEBUG 2024/10/20 21:11:39 pv charge current: 21.3A = 5.33A + 16A (-11027W @ 3p) [lp-1 ] DEBUG 2024/10/20 21:11:39 pv timer reset [lp-1 ] DEBUG 2024/10/20 21:11:39 pv timer inactive [lp-1 ] DEBUG 2024/10/20 21:11:54 charge power: 0W [lp-1 ] DEBUG 2024/10/20 21:11:54 charge currents: [0 0 0]A [lp-1 ] DEBUG 2024/10/20 21:12:09 charge power: 10527W [lp-1 ] DEBUG 2024/10/20 21:12:09 charge currents: [15.4 15.4 15.4]A [lp-1 ] DEBUG 2024/10/20 21:12:24 charge power: 10521W [lp-1 ] DEBUG 2024/10/20 21:12:24 charge currents: [15.4 15.4 15.4]A [lp-1 ] DEBUG 2024/10/20 21:12:24 charge total import: 1607.304kWh [lp-1 ] DEBUG 2024/10/20 21:12:24 charger status: C [lp-1 ] DEBUG 2024/10/20 21:12:24 soc estimated: 62.11% (vehicle: 62.00%) [lp-1 ] DEBUG 2024/10/20 21:12:24 vehicle soc: 62% [lp-1 ] DEBUG 2024/10/20 21:12:24 vehicle soc limit: 100% [lp-1 ] DEBUG 2024/10/20 21:12:24 vehicle range: 232km [lp-1 ] DEBUG 2024/10/20 21:12:24 pv charge battery boost: -7594W = -6904W battery - 690W boost [lp-1 ] DEBUG 2024/10/20 21:12:24 !! pvScalePhases phasesSwitched: 2024-10-20 21:11:39.97928743 +0200 CEST m=+9186.447106923, 44.922472299s [lp-1 ] DEBUG 2024/10/20 21:12:24 pv charge current: 10.9A = 16A + -5.13A (3537W @ 3p) [lp-1 ] DEBUG 2024/10/20 21:12:24 max charge current: 10A [lp-1 ] DEBUG 2024/10/20 21:12:39 charge power: 6512W [lp-1 ] DEBUG 2024/10/20 21:12:39 charge currents: [9.5 9.54 9.58]A [lp-1 ] DEBUG 2024/10/20 21:12:54 charge power: 6492W [lp-1 ] DEBUG 2024/10/20 21:12:54 charge currents: [9.5 9.54 9.58]A [lp-1 ] DEBUG 2024/10/20 21:13:09 charge power: 6477W [lp-1 ] DEBUG 2024/10/20 21:13:09 charge currents: [9.5 9.54 9.54]A [lp-1 ] DEBUG 2024/10/20 21:13:09 detected active phases: 3p [lp-1 ] DEBUG 2024/10/20 21:13:09 charge total import: 1607.389kWh [lp-1 ] DEBUG 2024/10/20 21:13:09 charger status: C [lp-1 ] DEBUG 2024/10/20 21:13:09 soc estimated: 62.25% (vehicle: 62.00%) [lp-1 ] DEBUG 2024/10/20 21:13:09 vehicle soc: 62% [lp-1 ] DEBUG 2024/10/20 21:13:09 vehicle soc limit: 100% [lp-1 ] DEBUG 2024/10/20 21:13:09 vehicle range: 232km [lp-1 ] DEBUG 2024/10/20 21:13:09 pv charge battery boost: -7555W = -6865W battery - 690W boost [lp-1 ] DEBUG 2024/10/20 21:13:09 !! pvScalePhases DOWN activePhases: 3, available power: 7021W, scalable: false [lp-1 ] DEBUG 2024/10/20 21:13:09 !! pvScalePhases UP maxPhases: 3, available power: 7021W, scalable: false [lp-1 ] DEBUG 2024/10/20 21:13:09 !! pvScalePhases EXIT [lp-1 ] DEBUG 2024/10/20 21:13:09 pv charge current: 10.8A = 10A + 0.788A (-544W @ 3p) [lp-1 ] DEBUG 2024/10/20 21:13:24 charge power: 6497W [lp-1 ] DEBUG 2024/10/20 21:13:24 charge currents: [9.54 9.58 9.58]A [lp-1 ] DEBUG 2024/10/20 21:13:39 charge power: 6495W [lp-1 ] DEBUG 2024/10/20 21:13:39 charge currents: [9.54 9.54 9.58]A [lp-1 ] DEBUG 2024/10/20 21:13:54 charge power: 6500W [lp-1 ] DEBUG 2024/10/20 21:13:54 charge currents: [9.5 9.54 9.58]A [lp-1 ] DEBUG 2024/10/20 21:13:54 detected active phases: 3p [lp-1 ] DEBUG 2024/10/20 21:13:54 charge total import: 1607.469kWh [lp-1 ] DEBUG 2024/10/20 21:13:54 charger status: C [lp-1 ] DEBUG 2024/10/20 21:13:54 soc estimated: 62.37% (vehicle: 62.00%) [lp-1 ] DEBUG 2024/10/20 21:13:54 vehicle soc: 62% [lp-1 ] DEBUG 2024/10/20 21:13:54 vehicle soc limit: 100% [lp-1 ] DEBUG 2024/10/20 21:13:54 vehicle range: 232km [lp-1 ] DEBUG 2024/10/20 21:13:54 pv charge battery boost: -7531W = -6841W battery - 690W boost [lp-1 ] DEBUG 2024/10/20 21:13:54 !! pvScalePhases DOWN activePhases: 3, available power: 7026W, scalable: false [lp-1 ] DEBUG 2024/10/20 21:13:54 !! pvScalePhases UP maxPhases: 3, available power: 7026W, scalable: false [lp-1 ] DEBUG 2024/10/20 21:13:54 !! pvScalePhases EXIT [lp-1 ] DEBUG 2024/10/20 21:13:54 pv charge current: 10.8A = 10A + 0.761A (-525W @ 3p) [lp-1 ] DEBUG 2024/10/20 21:14:09 charge power: 6525W [lp-1 ] DEBUG 2024/10/20 21:14:09 charge currents: [9.54 9.58 9.61]A ````Gerade nochmal getestet: logs
|
...dann ist hier aber etwas anders. Denn dieser Codepfad wurde in Deinen anderen Beispielen einfach nicht aufgerufen. Vorschlag: wir lassen das Logging drin bis es mal wieder nicht geht (das wird passieren). Dann wird mir das zusätzliche Logging Auskunft geben warum das der Fall ist. |
Refs #12190.
Depends on #16274.If battery boost is enabled, PV modes will try to push the battery into discharging as much as possible. This happens by increasing demand by counting battery charge power as neutral and adding additional vehicle demand on top. Enabling boost will also start charging. Setting is per loadpoint and only available in PV mode.
For time being, API-only:
to enable. Will be disabled when mode is changed.
TODO
batteryBuffered
should be honoredOut of scope
residualPower
should be honored -> not at all, see Site: use safe residual power default for home battery prioritisation #16632