evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Config UI: Error using heating related attributes when adding a user-defined charger

Open Hoffmann77 opened this issue 6 months ago • 10 comments

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

  1. Click on add Charger/Loadpoint (Ladepunkt hinzufügen).
  2. Select user-defined device (Benutzerdefiniertes Gerät).
  3. Uncomment heating related attributes like 'getmode', 'temp', 'templimit' or 'setmode'.
  4. 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

Hoffmann77 avatar Jun 01 '25 10:06 Hoffmann77

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?

andig avatar Jun 01 '25 16:06 andig

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.

naltatis avatar Jun 01 '25 18:06 naltatis

Type switchsocket, heatpump und sgready sind jeweils custom Geräte mit spezifischer eingebauter Logik. In dem Sinne alle gleichartig zu konfigurieren.

andig avatar Jun 01 '25 19:06 andig

Schick mir mal nen Link zu type: switchsocket. Wir haben ein Preset und eine Template Group aber keinen eigenen Typen.

naltatis avatar Jun 02 '25 06:06 naltatis

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
}

andig avatar Jun 02 '25 07:06 andig

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.

andig avatar Jun 02 '25 10:06 andig

Wäre ein benutzerdefinierter sg-ready charger mit Werten per mqtt in der UI denkbar?

BeneWilh avatar Jun 15 '25 18:06 BeneWilh

Den gibts schon: https://github.com/evcc-io/evcc/issues/21569#issuecomment-2930015770

andig avatar Jun 15 '25 18:06 andig

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.

Image

Image

BeneWilh avatar Jun 15 '25 19:06 BeneWilh

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.

Image

naltatis avatar Jun 15 '25 21:06 naltatis