Skip to content
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

UI-Konfiguration: charger: cannot create charger 'db:10': invalid charger type: #19792

Closed
2 tasks done
VolkerK62 opened this issue Mar 15, 2025 · 8 comments · Fixed by #19808
Closed
2 tasks done

UI-Konfiguration: charger: cannot create charger 'db:10': invalid charger type: #19792

VolkerK62 opened this issue Mar 15, 2025 · 8 comments · Fixed by #19808
Assignees
Labels
experimental Experimental feature prio Priority

Comments

@VolkerK62
Copy link
Contributor

Describe the bug

#19263 ist noch nicht vollumfänglich

Ich habe in UI-Konfiguration einen Ladepunkt angelegt mit einem Shelly als Charger.
Nach Neustart funktioniert alles.
Dann habe ich in der UI-Konfiguration beim Charger eine Änderung vorgenommen (integrateddevice=true).
Charger gespeichert, Ladepunkt gespeichert.
Nach einem Neustart kommt der Fehler

Image

Es werden keine Ladepunkte angezeigt. Also keine Chance den Fehler im UI zu beheben.

Wenn ich mittels "evcc config delete" den Charger lösche, bekomme ich in UI-Konfiguration wieder die Ladepunkte angezeigt.

Aber, wenn ich dann den Shelly erneut als Charger hinzufüge und den Ladepunt speichere, kommt nach einem Neustart der Fehler " Charger db:10 not found".
Es wird also die "alte" Verbindung nicht gelöscht.

charger
---
db:12 {Type:template Title: Icon: Product:} map[channel:0 host:192.168.178.88 integrateddevice:true password:***** standbypower:15 template:shelly user:*****]

loadpoint
---
db:11 {Type: Title: Icon: Product:} map[charger:db:10 circuit: defaultMode: meter: mode:minpv phasesConfigured:1 soc:map[estimate:false poll:map[interval:3.6e+12 mode:charging]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:ui-test vehicle:]

Man muss den Loadpoint komplett löschen und neu erstellen.

Steps to reproduce

.

Configuration details

wsl@DESKTOP-7RU7VSU:~$ evcc config
[main  ] INFO 2025/03/15 06:16:33 evcc 0.200.9 (8bb57b53)
[main  ] INFO 2025/03/15 06:16:33 using config file: /etc/evcc.yaml
[db    ] INFO 2025/03/15 06:16:33 using sqlite database: /home/wsl/.evcc/evcc.db
[db    ] TRACE 2025/03/15 06:16:33 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="settings" -1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "settings" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `settings` LIMIT 1 -1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `settings` 16 <nil>
[mqtt  ] INFO 2025/03/15 06:16:33 connecting evcc-21215759 at tcp://192.168.178.25:1883
[mqtt  ] DEBUG 2025/03/15 06:16:33 tcp://192.168.178.25:1883 connected
[db    ] TRACE 2025/03/15 06:16:33 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs" -1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` LIMIT 1 -1 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 1 1 <nil>
charger
---
db:10 {Type: Title: Icon: Product:} map[channel:0 host:192.168.178.88 integrateddevice:true password:***** standbypower:15 template:shelly user:*****]

[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 2 0 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 3 0 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 4 0 <nil>
[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 5 1 <nil>
loadpoint
---
db:11 {Type: Title: Icon: Product:} map[charger:db:10 circuit: meter: mode:minpv phasesConfigured:1 soc:map[estimate:false poll:map[interval:3.6e+12 mode:charging]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:ui-test vehicle:]

[db    ] TRACE 2025/03/15 06:16:33 SELECT * FROM `configs` WHERE `configs`.`class` = 6 0 <nil>

Log details

wsl@DESKTOP-7RU7VSU:~$ evcc
[main  ] INFO 2025/03/15 06:18:08 evcc 0.200.9 (8bb57b53)
[main  ] INFO 2025/03/15 06:18:08 using config file: /etc/evcc.yaml
[db    ] INFO 2025/03/15 06:18:08 using sqlite database: /home/wsl/.evcc/evcc.db
[db    ] TRACE 2025/03/15 06:18:08 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="settings" -1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "settings" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `settings` LIMIT 1 -1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `settings` 16 <nil>
[mqtt  ] INFO 2025/03/15 06:18:08 connecting evcc-1265398814 at tcp://192.168.178.25:1883
[mqtt  ] DEBUG 2025/03/15 06:18:08 tcp://192.168.178.25:1883 connected
[db    ] TRACE 2025/03/15 06:18:08 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs" -1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `configs` LIMIT 1 -1 <nil>
[main  ] INFO 2025/03/15 06:18:08 listening at :7070
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `configs` WHERE `configs`.`class` = 5 1 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `configs` WHERE `configs`.`class` = 2 0 <nil>
[db    ] TRACE 2025/03/15 06:18:08 SELECT * FROM `configs` WHERE `configs`.`class` = 1 1 <nil>
[main  ] FATAL 2025/03/15 06:18:09 charger cannot create charger 'db:10': invalid charger type:
[main  ] FATAL 2025/03/15 06:18:09 will attempt restart in: 15m0s

What type of operating system or environment does evcc run on?

Linux

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.200.9 (8bb57b5)

@andig
Copy link
Member

andig commented Mar 15, 2025

Ich habe in UI-Konfiguration einen Ladepunkt angelegt mit einem Shelly als Charger.

Bitte exakte steps to reproduce

@andig andig added the question Rather clarification than issue label Mar 15, 2025
@andig
Copy link
Member

andig commented Mar 15, 2025

Es werden keine Ladepunkte angezeigt. Also keine Chance den Fehler im UI zu beheben.

@naltatis das sollte egtl. nicht der Fall sein?

@andig
Copy link
Member

andig commented Mar 15, 2025

@naltatis die Ursache für die fehlende Bearbeitbarkeit hier ist, dass configureDevices vor configureLoadpoint schon einen Fehler bringt und daher kein Ladepunkt mehr erzeugt wird. Damit sind Charger/Charge Meter dann auch nicht mehr bearbeitbar. Wir müssen wohl nochmal überlegen, in welcher Reihenfolge wir hier vorgehen wollen.

@VolkerK62
Copy link
Contributor Author

@andig brauchst du noch weitere Infos von mir?

@VolkerK62
Copy link
Contributor Author

steps to reproduce:

Konfig-UI öffnen
Ladepunkt hinzufügen, Titel vergeben
Wallbox hinzufügen
Democharger auswählen
prüfen
speichern
Ladepunkt speichern
Neustart
Konfig-UI öffnen
den erstellten Ladepunkt bearbeiten
charger bearbeiten
in dern erweiterten Einstellungen 10A und Phasenumschaltung einstellen
prüfen
speichern
Ladepunkt speichern
Neustart
Fehler mit invalid charger type

@andig andig added experimental Experimental feature and removed question Rather clarification than issue labels Mar 15, 2025
@andig
Copy link
Member

andig commented Mar 15, 2025

@naltatis beim zweiten speichern verliert der Charger seinen type:

db:132 {Type:template Title: Icon: Product:} map[enabled:true phases1p3p:false power:0 status:A template:demo-charger]
db:137 {Type: Title: Icon: Product:} map[enabled:true phases1p3p:false power:0 status:A template:demo-charger]

Entweder schickt das UI etwas nicht mit und/oder das Backend muss doch defensiver mit den Updates umgehen.

Es bleibt das Problem, dass das UI aus der Situation nicht mehr raus kommt.

@andig andig added the prio Priority label Mar 15, 2025
@andig
Copy link
Member

andig commented Mar 15, 2025

@naltatis gleiches Problem bei den meters. Sieht aus wir Folgefehler aus #19416.

@andig
Copy link
Member

andig commented Mar 15, 2025

@VolkerK62 du kannst die kaputten Dinger (hier der Charger) mit

evcc config delete <id>

löschen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Experimental feature prio Priority
Projects
None yet
3 participants