Skip to content

Commit

Permalink
NIU scooter: add capacity to template (evcc-io#3468)
Browse files Browse the repository at this point in the history
  • Loading branch information
thierolm authored May 22, 2022
1 parent e1ecaed commit 1c7e415
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/definition/vehicle/niu-e-scooter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ params:
required: true
mask: true
- name: serial
description:
de: Scooter Seriennummer, wie in der NIU app angegeben
en: Scooter serial number like shown in NIU app
required: true
- name: capacity
default: 4
- preset: vehicleidentify
render: |
type: niu
Expand All @@ -22,4 +27,4 @@ render: |
user: {{ .user }} # NIU app user
password: {{ .password }} # NIU app password
serial: {{ .serial }} # NIU E-Scooter serial number like shown in app
capacity: 4
capacity: {{ .capacity }}
2 changes: 2 additions & 0 deletions templates/docs/vehicle/niu-e-scooter_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ render:
user: # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
password: # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
serial:
capacity: 4 # Akku-Kapazität in kWh # Optional
advanced: |
type: template
template: niu-e-scooter
title: # Wird in der Benutzeroberfläche angezeigt # Optional
user: # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
password: # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
serial:
capacity: 4 # Akku-Kapazität in kWh # Optional
mode: # Möglich sind Off, Now, MinPV und PV, oder leer wenn keiner definiert werden soll # Optional
minSoC: 25 # Lade sofort mit maximaler Geschwindigkeit bis zu dem angegeben Ladestand, wenn der Lademodus nicht auf 'Aus' steht # Optional
targetSoC: 80 # Bis zu welchem Ladestand (SoC) soll das Fahrzeug geladen werden # Optional
Expand Down

0 comments on commit 1c7e415

Please sign in to comment.