Vehicle template udpates (#2264)
- Add Smart EQ template - Fix EVNotify template
This commit is contained in:
parent
479e4363f8
commit
0c2355036c
4 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
templates/definition/vehicle/smart.yaml
Normal file
12
templates/definition/vehicle/smart.yaml
Normal 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" .}}
|
||||
7
templates/docs/vehicle/smart.yaml
Normal file
7
templates/docs/vehicle/smart.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
type: template
|
||||
template: smart
|
||||
description: Smart EQ
|
||||
user:
|
||||
password:
|
||||
vin: W...
|
||||
capacity: 17.6
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue