evcc-io/templates/definition/vehicle/niu-e-scooter.yaml

36 lines
830 B
YAML

template: niu-e-scooter
products:
- brand: NIU
description:
generic: E-Scooter
group: scooter
params:
- name: title
- name: icon
default: scooter
- name: user
required: true
- name: password
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: vehicle-identify
render: |
type: niu
{{- if .title }}
title: {{ .title }}
{{- end }}
{{- if .icon }}
icon: {{ .icon }}
{{- end }}
user: {{ .user }} # NIU app user
password: {{ .password }} # NIU app password
serial: {{ .serial }} # NIU E-Scooter serial number like shown in app
capacity: {{ .capacity }}
{{ include "vehicle-identify" . }}