Templates: add vehicle-identify for Tronity, EVNotify (#7831)

This commit is contained in:
andig 2023-05-05 19:34:28 +02:00 • committed by GitHub
parent a46ac0ecd5
commit 27f0a1471e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 11 deletions

View file

@ -19,11 +19,11 @@ params:
- preset: vehicle-identify
render: |
type: custom
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
capacity: {{ .capacity }}
{{- if ne .phases "" }}
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
soc:
@ -31,3 +31,4 @@ render: |
uri: https://app.evnotify.de/soc?akey={{ .akey }}&token={{ .token }} # evNotify Server + AKEY
method: GET
jq: .soc_display
{{ include "vehicle-identify" . }}

View file

@ -23,7 +23,7 @@ params:
- preset: vehicle-identify
render: |
type: niu
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if ne .icon "" }}
@ -33,3 +33,4 @@ render: |
password: {{ .password }} # NIU app password
serial: {{ .serial }} # NIU E-Scooter serial number like shown in app
capacity: {{ .capacity }}
{{ include "vehicle-identify" . }}

View file

@ -23,14 +23,14 @@ params:
render: |
type: custom
features: ["offline"]
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if ne .icon "" }}
icon: {{ .icon }}
{{- end }}
capacity: {{ .capacity }} # kWh
{{- if ne .phases "" }}
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
soc: # fixed - no Soc available

View file

@ -26,7 +26,7 @@ params:
- preset: vehicle-identify
render: |
type: ovms
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if ne .icon "" }}
@ -36,7 +36,7 @@ render: |
password: {{ .password }}
vehicleid: {{ .vehicleid }} # vehicle id
capacity: {{ .capacity }}
{{- if ne .phases "" }}
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
server: dexters-web.de # used ovms server [dexters-web.de or api.openvehicles.com]

View file

@ -40,7 +40,7 @@ params:
- preset: vehicle-identify
render: |
type: tesla
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if ne .icon "" }}
@ -50,7 +50,7 @@ render: |
access: {{ .accessToken }}
refresh: {{ .refreshToken }}
capacity: {{ .capacity }}
{{- if ne .phases "" }}
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
{{- if ne .vin "" }}

View file

@ -23,7 +23,7 @@ params:
- preset: vehicle-identify
render: |
type: tronity
{{- if ne .title "" }}
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if ne .icon "" }}
@ -33,9 +33,10 @@ render: |
id: {{ .user }}
secret: {{ .password }}
capacity: {{ .capacity }}
{{- if ne .phases "" }}
{{- if .phases }}
phases: {{ .phases }}
{{- end }}
{{- if ne .vin "" }}
vin: {{ .vin }}
{{- end }}
{{ include "vehicle-identify" . }}