chore: use vehicle-common include (#14452)

This commit is contained in:
andig 2024-06-18 11:17:08 +02:00 • committed by GitHub
parent 09f9424227
commit 82f78d0ff6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 74 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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" . }}

View file

@ -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

View file

@ -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