evcc-io/cmd/configure/configure.tpl
Andreas Linde 017321d48e
Add configure option to ask for a fixed vehicles
Ask the user if automatic vehicle detection should be turned off and a vehicle assigned instead if there are more than 0 vehicles defined.
If more than 1 vehicles are configured, it will ask which to assign
2022-10-15 11:10:50 +02:00

91 lines
1.7 KiB
Smarty

# open evcc at http://evcc.local:7070
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7070
log: info
levels:
cache: error
# unique installation id
plant: {{ .Plant }}
interval: 10s # control cycle interval
{{- if ne (len .SponsorToken) 0 }}
sponsortoken: {{ .SponsorToken }}
# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: {{ .Telemetry }}
{{- end}}
{{- if ne (len .Meters) 0 }}
meters:
{{- range .Meters }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Chargers) 0 }}
chargers:
{{- range .Chargers }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Vehicles) 0 }}
vehicles:
{{- range .Vehicles }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Chargers) 0 }}
loadpoints:
{{- range .Loadpoints }}
- title: {{ .Title }}
charger: {{ .Charger }}
{{- if .ChargeMeter }}
meter: {{ .ChargeMeter }}
{{- end }}
{{- if .Vehicle }}
vehicle: {{ .Vehicle }}
{{- end }}
mode: {{ .Mode }}
phases: {{ .Phases }}
mincurrent: {{ .MinCurrent }}
maxcurrent: {{ .MaxCurrent }}
resetOnDisconnect: {{ .ResetOnDisconnect }}
{{- end }}
{{- end }}
site:
title: {{ .Site.Title }}
meters:
{{- if .Site.Grid }}
grid: {{ .Site.Grid }}
{{- end }}
{{- if len .Site.PVs }}
pvs:
{{- range .Site.PVs }}
- {{ . }}
{{- end }}
{{- end }}
{{- if len .Site.Batteries }}
batteries:
{{- range .Site.Batteries }}
- {{ . }}
{{- end }}
{{- end }}
{{- if ne (len .Hems) 0 }}
hems:
{{ .Hems | indent 2 }}
{{- end }}
{{- if ne (len .EEBUS) 0 }}
eebus:
{{ .EEBUS | indent 2 }}
{{- end }}