diff --git a/templates/definition/vehicle/evnotify.yaml b/templates/definition/vehicle/evnotify.yaml index 1583078bc..6ec635abd 100644 --- a/templates/definition/vehicle/evnotify.yaml +++ b/templates/definition/vehicle/evnotify.yaml @@ -19,13 +19,7 @@ params: - preset: vehicle-identify render: | type: custom - {{- if .title }} - title: {{ .title }} - {{- end }} - capacity: {{ .capacity }} - {{- if .phases }} - phases: {{ .phases }} - {{- end }} + {{ include "vehicle-common" . }} soc: source: http uri: https://app.evnotify.de/soc?akey={{ urlEncode .akey }}&token={{ urlEncode .token }} # evNotify Server + AKEY diff --git a/templates/definition/vehicle/iso15118.yaml b/templates/definition/vehicle/iso15118.yaml index e6988c1e6..d7dbf8b58 100644 --- a/templates/definition/vehicle/iso15118.yaml +++ b/templates/definition/vehicle/iso15118.yaml @@ -19,17 +19,8 @@ params: - preset: vehicle-identify render: | type: custom + {{- include "vehicle-common" . }} features: ["offline"] - {{- if .title }} - title: {{ .title }} - {{- end }} - {{- if .icon }} - icon: {{ .icon }} - {{- end }} - capacity: {{ .capacity }} # kWh - {{- if .phases }} - phases: {{ .phases }} - {{- end }} soc: source: const value: 0 diff --git a/templates/definition/vehicle/mg2mqtt.yaml b/templates/definition/vehicle/mg2mqtt.yaml index 7fbe2000f..9eb3fa8b4 100644 --- a/templates/definition/vehicle/mg2mqtt.yaml +++ b/templates/definition/vehicle/mg2mqtt.yaml @@ -24,18 +24,7 @@ params: - preset: vehicle-identify render: | type: custom - {{- if .title }} - title: {{ .title }} - {{- end }} - {{- if .icon }} - icon: {{ .icon }} - {{- end }} - {{- if .capacity }} - capacity: {{ .capacity }} - {{- end }} - {{- if .phases }} - phases: {{ .phases }} - {{- end }} + {{- include "vehicle-common" . }} {{- include "vehicle-identify" . }} soc: # battery soc (%) source: mqtt diff --git a/templates/definition/vehicle/offline.yaml b/templates/definition/vehicle/offline.yaml index 9c7d9f171..44f9eaaec 100644 --- a/templates/definition/vehicle/offline.yaml +++ b/templates/definition/vehicle/offline.yaml @@ -15,16 +15,7 @@ params: 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-common" . }} soc: source: const value: 0 diff --git a/templates/definition/vehicle/ovms.yaml b/templates/definition/vehicle/ovms.yaml index 98b6b9d51..21a439ee1 100644 --- a/templates/definition/vehicle/ovms.yaml +++ b/templates/definition/vehicle/ovms.yaml @@ -22,21 +22,16 @@ params: default: 12 - name: phases advanced: true + - name: server + default: dexters-web.de + advanced: true + required: true - preset: vehicle-identify render: | type: ovms - {{- if .title }} - title: {{ .title }} - {{- end }} - {{- if .icon }} - icon: {{ .icon }} - {{- end }} + {{- include "vehicle-common" . }} user: {{ .user }} password: {{ .password }} vehicleid: {{ .vehicleid }} # vehicle id - capacity: {{ .capacity }} - {{- if .phases }} - phases: {{ .phases }} - {{- end }} - server: dexters-web.de # used ovms server [dexters-web.de or api.openvehicles.com] + server: {{ .server }} {{ include "vehicle-identify" . }} diff --git a/templates/definition/vehicle/teslalogger.yaml b/templates/definition/vehicle/teslalogger.yaml index 691f06155..1e245d04a 100644 --- a/templates/definition/vehicle/teslalogger.yaml +++ b/templates/definition/vehicle/teslalogger.yaml @@ -30,18 +30,7 @@ params: render: | type: custom - {{- if .title }} - title: {{ .title }} - {{- end }} - {{- if .icon }} - icon: {{ .icon }} - {{- end }} - {{- if .capacity }} - capacity: {{ .capacity }} - {{- end }} - {{- if .phases }} - phases: {{ .phases }} - {{- end }} + {{- include "vehicle-common" . }} {{- include "vehicle-identify" . }} soc: # battery soc (%) source: http diff --git a/templates/definition/vehicle/teslamate.yaml b/templates/definition/vehicle/teslamate.yaml index a2785379b..e2feb88a1 100644 --- a/templates/definition/vehicle/teslamate.yaml +++ b/templates/definition/vehicle/teslamate.yaml @@ -23,18 +23,7 @@ params: - preset: vehicle-identify render: | type: custom - {{- if .title }} - title: {{ .title }} - {{- end }} - {{- if .icon }} - icon: {{ .icon }} - {{- end }} - {{- if .capacity }} - capacity: {{ .capacity }} - {{- end }} - {{- if .phases }} - phases: {{ .phases }} - {{- end }} + {{- include "vehicle-common" . }} {{- include "vehicle-identify" . }} soc: source: mqtt