Skip to content

Commit

Permalink
BMW: add coarsecurrent (#17170)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Nov 10, 2024
1 parent 7e6e9bc commit 6c9ae85
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/definition/vehicle/bmw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ params:
# - EU
default: EU
advanced: true
- name: coarsecurrent
advanced: true
- name: welcomecharge
advanced: true
render: |
Expand All @@ -24,6 +26,12 @@ render: |
{{- if ne .region "EU" }}
region: {{ .region }}
{{- end }}
{{- if or (eq .coarsecurrent "true") (eq .welcomecharge "true") }}
features:
{{- if eq .coarsecurrent "true" }}
- coarsecurrent
{{- end }}
{{- if eq .welcomecharge "true" }}
features: ["welcomecharge"]
- welcomecharge
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions util/templates/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ params:
help:
en: The AIN is printed on the type label on the back of the device. Embed it in double quotes in case of leading zeroes.
de: Die AIN ist auf dem Typenschild auf der Geräterückseite aufgedruckt. Bei führenden Nullen bitte in doppelte Hochkommata setzen.
- name: coarsecurrent
type: bool
help:
en: 1A current control
de: 1A Ladestromvorgabe
description:
en: Vehicle supports 1A current steps only
de: Fahrzeug unterstützt nur 1A Schritte der Ladestromvorgabe
- name: welcomecharge
type: bool
description:
Expand Down

0 comments on commit 6c9ae85

Please sign in to comment.