-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Ladeplanung: "Zielzeit nicht erreichbar" (Anzeige- oder Berechnungsproblem) #12703
Comments
@andig magst du da mal reinschauen. An dieser Stelle wird rein das Hier ist der Code: https://github.com/evcc-io/evcc/blob/master/core/loadpoint_plan.go#L125-L129 |
@andig Ja, ich hab bei der projizierten Zeit die Sekunden entfernt (auf Min abgerundet) und beim gewünschten Ziel aufgerundet. Das war in JS für mich der einfachste Weg. Siehe https://github.com/evcc-io/evcc/blob/master/assets/js/components/ChargingPlanWarnings.vue#L76-L87 Das ist äquivalent zu einer Toleranz von max 1min. In Go kann man das sicher eleganter abfragen. Da ist Zeit ordentlich modelliert :D |
Ich würde die Entscheidung trotzdem dem UI überlassen oder sollte das Backend schon entscheiden, ob/das 60s "ok" sind? UI wäre hier konsistent? |
Dann macht der gepublishte |
Ich find auch gut, wenn wir die Logik auf einer Seite halten. Ob in UI oder in Backend wäre mir relativ egal. Wenn wir sagen das soll ins Backend müssten Wenn wirs in der UI machen brauchen wir den geschätzten Endwert im globalen Publishing (nicht nur als HTTP Call |
Wir machen es doch an anderer Stelle schon in der UI? Ich würde einfach aus |
Ich hab ja auch |
Es wird halt wieder asynchron wenn wir planoverrun of 1min prüfen ;) JS kann keine Dates subtrahieren? Nichtmal als UNIX? |
Klar geht das, ist aber aktuell nicht so, weil das für den Anwendungsfall ausreichend war. |
Ich würde 1-5min "drüber laufen" für ok halten, aber wenn es nur 60s sind und dann steht bspw. "Ladeziel nicht erreichbar. Voraussichtliches Ende 02:01" bei eingestellter Zielzeit von "02:00", dann ist es zumindest inhaltlich nachvollziehbar. |
Describe the bug
Sporadisch auftretender Warnhinweis, dass Zielzeit nicht erreichbar ist, obwohl evcc eigentlich (fast) pünktlich startete (nach meinen Beobachtungen vielleicht 1/2 bis 1 Minute zu spät).
Im UI steht dann die Hinweismeldung, in der aber voraussichtliche und geplante Zielzeit "optisch" identisch sind - sicherlich einem Rundungsproblem/Nichtanzeigen der Sekunden geschuldet.
Idee: Entweder Ladeplanung mit zusätzlichem Puffer von 1 Minute vorher starten...
oder Alternative: (finde ich besser) Zielzeiten ohne Sekunden - also so wie im UI angezeigt - miteinander vergleichen für Entscheidung, ob Warnhinweis notwendig ist oder nicht
Steps to reproduce
Nicht direkt reproduzierbar.
Sehr sporadisch aufgetreten -> betrifft ca. 1 von 10 ausgeführten Ladeplanungen.
Configuration details
Log details
What type of operating system are you running?
Windows
Version
0.124.4
The text was updated successfully, but these errors were encountered: