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

chore: refactor offline vehicles #8404

Merged
merged 1 commit into from
Jun 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions templates/definition/vehicle/iso15118.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ template: iso15118
products:
- description:
generic: ISO15118
capabilities: ["iso151182"]
group: generic
requirements:
description:
Expand Down Expand Up @@ -29,7 +30,7 @@ render: |
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
soc: # fixed - Soc fetched via charger available
source: js
script: 0;
soc:
source: const
value: 0
{{ include "vehicle-identify" . }}
11 changes: 6 additions & 5 deletions templates/definition/vehicle/offline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ params:
- name: identifiers
advanced: true
type: stringlist
- preset: vehicle-identify
render: |
type: custom
features: ["offline"]
Expand All @@ -33,15 +34,15 @@ render: |
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
soc: # fixed - no Soc available
source: js
script: 0;
soc:
source: const
value: 0
onIdentify:
{{- if .mode }}
mode: {{ .mode }}
{{- end }}
minSoc: 0 # fixed - no Soc available
targetSoc: 100 # fixed - no Soc available
minSoc: 0 # fixed - no soc available
targetSoc: 100 # fixed - no soc available
{{- if .minCurrent }}
minCurrent: {{ .minCurrent }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions templates/docs/vehicle/iso15118_0.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
product:
description: ISO15118
group: Generische Unterstützung
capabilities: ["iso151182"]
description: |
Nur unterstützt wenn das Fahrzeug den Ladestand (Soc) an die verbundene Wallbox übermitteln kann.
render:
Expand Down
7 changes: 7 additions & 0 deletions templates/docs/vehicle/offline_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ render:
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)
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)