From 6c9ae85d85d95d44b85e5e9beefb61e93ec87c5f Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 10 Nov 2024 22:29:16 +0100 Subject: [PATCH] BMW: add coarsecurrent (#17170) --- templates/definition/vehicle/bmw.yaml | 10 +++++++++- util/templates/defaults.yaml | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/templates/definition/vehicle/bmw.yaml b/templates/definition/vehicle/bmw.yaml index 04442f15d1..1a1391ad0a 100644 --- a/templates/definition/vehicle/bmw.yaml +++ b/templates/definition/vehicle/bmw.yaml @@ -15,6 +15,8 @@ params: # - EU default: EU advanced: true + - name: coarsecurrent + advanced: true - name: welcomecharge advanced: true render: | @@ -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 }} diff --git a/util/templates/defaults.yaml b/util/templates/defaults.yaml index 881bf0d14b..cbbfeadf14 100644 --- a/util/templates/defaults.yaml +++ b/util/templates/defaults.yaml @@ -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: