evnotify: add v3 api support (#30927)

This commit is contained in:
ross-w 2026-06-17 01:31:21 +10:00 • committed by GitHub
parent 43bbf76ea4
commit 6b7995d744
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,11 +10,26 @@ params:
generic: API Key
- name: token
required: true
- name: apiversion
type: choice
choice: ["2", "3"]
default: "2"
description:
en: API version
de: API-Version
- preset: vehicle-common
- preset: vehicle-climater
render: |
type: custom
{{ include "vehicle-common" . }}
{{- if eq .apiversion "3" }}
soc:
source: http
uri: https://api.evnotify.de/logs/{{ urlEncode .akey }}/last-sync
headers:
Authorization: {{ .akey }} {{ .token }}
jq: .socDisplay
{{- else }}
soc:
source: http
uri: https://app.evnotify.de/soc?akey={{ urlEncode .akey }}&token={{ urlEncode .token }}
@ -29,4 +44,5 @@ render: |
source: http
uri: https://app.evnotify.de/extended?akey={{ urlEncode .akey }}&token={{ urlEncode .token }}
jq: .charging
{{- end }}
{{ include "vehicle-features" . }}