Vehicle template udpates (#2264)

- Add Smart EQ template
- Fix EVNotify template
This commit is contained in:
Andreas Linde 2022-01-16 13:17:13 +01:00 • committed by GitHub
parent 479e4363f8
commit 0c2355036c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 1 deletions

View file

@ -18,7 +18,7 @@ render: |
title: {{ .title }}
{{- end }}
capacity: {{ .capacity }}
charge:
soc:
type: http
uri: https://app.evnotify.de/soc?akey={{ .akey }}&token={{ .token }} # evNotify Server + AKEY
method: GET

View file

@ -0,0 +1,12 @@
template: smart
description:
generic: Smart EQ
params:
- base: vehiclebase
- base: vehicleidentify
- name: capacity
default: 17.6
render: |
type: smart
{{include "vehicle-base" .}}
{{include "vehicle-identify" .}}

View file

@ -0,0 +1,7 @@
type: template
template: smart
description: Smart EQ
user:
password:
vin: W...
capacity: 17.6

View file

@ -29,6 +29,7 @@ var acceptable = []string{
"missing access and/or refresh token, use `evcc token` to create", // Tesla
"login failed: Unauthorized: Authentication Failed", // Nissan
"login failed: no auth code", // Porsche
"login failed: unexpected status: 400", // Smart
"invalid_client:Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)", // BMW, Mini
"login failed: oauth2: cannot fetch token: 400 Bad Request Response: {\"error\":\"invalid_request\",\"error_description\":\"Missing parameter, 'username'\"}", // Opel, DS, Citroen, PSA
"401: Unauthorized: Invalid credentials", // Volvo