chore: use vehicle-common include (#14452)
This commit is contained in:
parent
09f9424227
commit
82f78d0ff6
7 changed files with 12 additions and 74 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" . }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue