From 6b7995d7440b696fffe46776cd36c71e718c5c44 Mon Sep 17 00:00:00 2001 From: ross-w Date: Wed, 17 Jun 2026 01:31:21 +1000 Subject: [PATCH] evnotify: add v3 api support (#30927) --- templates/definition/vehicle/evnotify.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/templates/definition/vehicle/evnotify.yaml b/templates/definition/vehicle/evnotify.yaml index abd2a9a82..6971b3ddc 100644 --- a/templates/definition/vehicle/evnotify.yaml +++ b/templates/definition/vehicle/evnotify.yaml @@ -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" . }}