Config UI: Error using heating related attributes when adding a user-defined charger
Describe the bug
When using the config UI to add a user-defined charger it's not possible to use heating related attributes: "cannot create charger type 'custom': decoding failed due to the following error(s): '' has invalid keys: getmode, temp, templimit".
Steps to reproduce
- Click on add Charger/Loadpoint (Ladepunkt hinzufügen).
- Select user-defined device (Benutzerdefiniertes Gerät).
- Uncomment heating related attributes like 'getmode', 'temp', 'templimit' or 'setmode'.
- Try to save the configuration.
Configuration details
Config UI
Log details
No Log entries.
What type of operating system or environment does evcc run on?
HomeAssistant Add-on
External automation
- [x] 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
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
0.204.1
There are no heating related attributes for type custom. Those only exit for type heating or sgready.
@naltatis seems we need additional configurable types? I guess switchsocket could be another one?
Any chance we can simplify the sgready configuration? In many cases it's an embedded switch socket / charger (shelly, ...) configuration for which we have a proper template that we could show as a form.
What do you mean with switchsocket? Currently I see templates with type heatpump and sgready that we need to handle.
In general we had multiple requests make configuring heating more approachable. Currently you have to add a "Loadpoint" and a "Charger". I'm thinking of introducing a dedicated area/list for "Heating" which uses more appropriate wording and offers a different set of device options (group heating, custom, heat pump, sgready). Similar to the grid/pv/aux-meter distinction.
Type switchsocket, heatpump und sgready sind jeweils custom Geräte mit spezifischer eingebauter Logik. In dem Sinne alle gleichartig zu konfigurieren.
Schick mir mal nen Link zu type: switchsocket. Wir haben ein Preset und eine Template Group aber keinen eigenen Typen.
Aktuell gibts keinen, möglich wäre es aber:
var cc struct {
embed `mapstructure:",squash"`
Enabled plugin.Config
Enable plugin.Config
Power plugin.Config
Energy *plugin.Config
Soc *plugin.Config
StandbyPower float64
}
Any chance we can simplify the sgready configuration? In many cases it's an embedded switch socket / charger (shelly, ...) configuration for which we have a proper template that we could show as a form.
sgready is it's own custom type made up of plugins.
Wäre ein benutzerdefinierter sg-ready charger mit Werten per mqtt in der UI denkbar?
Den gibts schon: https://github.com/evcc-io/evcc/issues/21569#issuecomment-2930015770
Den gibts schon: #21569 (comment)
in der aktuellen Version v0.240.2? unter was muss ich schauen? Wie heißt der Charger?
Ich benutze aktuell den benutzerdefinierten Charger, aber de akzeptiert ja wie oben beschrieben die WP spezifischen Details nicht
by the way: hinweis wie ich den Namen anpassen kann? name, titel, description werden beim Ladepunkt, Zähler und Fahrzeug nicht nicht akzeptiert bzw. nicht angezeigt.
Der Charger selbst hat keinen Titel. Im UI wird immer der Titel das Ladepunktes verwendet.
Bei Zählern (PV/Battery/AUX) bekommst du ein dediziertes Titlefeld. Bei Fahrzeugen ist der Title (historische Gründe) Teil des Benutzerdefinierten Templateinhalts.