diff --git a/templates/README.md b/templates/README.md index 31bd45df4..825969fc9 100644 --- a/templates/README.md +++ b/templates/README.md @@ -172,9 +172,9 @@ Example Use Case: With SMA Home Manager, there can be a SMA Energy Meter used fo `example` provides an example value, so the user can get an idea of what is expected and what to look out for -### `valuetype` +### `type` -`valuetype` allows to define the value type to let the CLI verify the user provided content +`type` allows to define the value type to let the CLI verify the user provided content **Possible values**: diff --git a/templates/definition/common-schema.json b/templates/definition/common-schema.json index 94e68e160..d2de2fe31 100644 --- a/templates/definition/common-schema.json +++ b/templates/definition/common-schema.json @@ -194,7 +194,7 @@ "deprecated": { "type": "boolean" }, - "valuetype": { + "type": { "type": "string", "enum": [ "string", @@ -288,7 +288,7 @@ "default": { "minLength": 1 }, - "valuetype": { + "type": { "type": "string", "enum": [ "string", diff --git a/templates/definition/vehicle/iso15118.yaml b/templates/definition/vehicle/iso15118.yaml new file mode 100644 index 000000000..16cddf1c7 --- /dev/null +++ b/templates/definition/vehicle/iso15118.yaml @@ -0,0 +1,32 @@ +template: iso15118 +products: + - description: + generic: ISO15118 +group: generic +requirements: + description: + de: Nur unterstützt wenn das Fahrzeug den Ladestand (Soc) an die verbundene Wallbox übermitteln kann. + en: Only supported if the vehicle can provided the state of charge (Soc) to the connected wallbox. +params: + - name: title + - name: capacity + - name: phases + advanced: true + - name: icon + default: car + advanced: true + - preset: vehicle-identify +render: | + type: custom + features: ["offline"] + {{- if .title }} + title: {{ .title }} + {{- end }} + {{- if .icon }} + icon: {{ .icon }} + {{- end }} + capacity: {{ .capacity }} # kWh + {{- if .phases }} + phases: {{ .phases }} + {{- end }} + {{ include "vehicle-identify" . }} diff --git a/templates/docs/vehicle/iso15118_0.yaml b/templates/docs/vehicle/iso15118_0.yaml new file mode 100644 index 000000000..8a3be6f4c --- /dev/null +++ b/templates/docs/vehicle/iso15118_0.yaml @@ -0,0 +1,25 @@ +product: + description: ISO15118 + group: Generische Unterstützung +description: | + Nur unterstützt wenn das Fahrzeug den Ladestand (Soc) an die verbundene Wallbox übermitteln kann. +render: + - default: | + type: template + template: iso15118 + title: # Wird in der Benutzeroberfläche angezeigt (Optional) + capacity: 50 # Akkukapazität in kWh (Optional) + advanced: | + type: template + template: iso15118 + title: # Wird in der Benutzeroberfläche angezeigt (Optional) + capacity: 50 # Akkukapazität in kWh (Optional) + phases: 3 # Die maximale Anzahl der Phasen welche genutzt werden können (Optional) + icon: car # Icon in der Benutzeroberfläche (Optional) + mode: # Möglich sind Off, Now, MinPV und PV, oder leer wenn keiner definiert werden soll (Optional) + minSoc: 25 # Ladung mit maximaler Geschwindigkeit bis zu dem angegeben Ladestand unabhängig PV-Erzeugung, wenn der Lademodus nicht auf 'Aus' steht (Optional) + targetSoc: 80 # Bis zu welchem Ladestand (Soc) soll das Fahrzeug geladen werden (Optional) + minCurrent: 6 # Definiert die minimale Stromstärke pro angeschlossener Phase mit welcher das Fahrzeug geladen werden soll (Optional) + maxCurrent: 16 # Definiert die maximale Stromstärke pro angeschlossener Phase mit welcher das Fahrzeug geladen werden soll (Optional) + identifiers: # Kann meist erst später eingetragen werden, siehe: https://docs.evcc.io/docs/guides/vehicles/#erkennung-des-fahrzeugs-an-der-wallbox (Optional) + priority: # Priorität des Ladepunktes oder Fahrzeugs in Relation zu anderen Ladepunkten oder Fahrzeugen für die Zuweisung von PV-Energie (Optional) diff --git a/util/templates/defaults.yaml b/util/templates/defaults.yaml index eafb1eef4..4308b0f44 100644 --- a/util/templates/defaults.yaml +++ b/util/templates/defaults.yaml @@ -173,7 +173,7 @@ params: en: Minimum state of charge (Soc) in % help: de: Ladung mit maximaler Geschwindigkeit bis zu dem angegeben Ladestand unabhängig PV-Erzeugung, wenn der Lademodus nicht auf 'Aus' steht - en: Immediate charging with maximum power up to the defined state of charge independently from solar production if the charge mode is not set to 'OFF' + en: Immediate charging with maximum power up to the defined state of charge independently from solar production if the charge mode is not set to 'Off' example: 25 type: number - name: targetsoc