Skip to content

Commit

Permalink
chore: simplify templates and filter usage-bounded parameters (evcc-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Apr 1, 2023
1 parent 943640d commit 33b780b
Show file tree
Hide file tree
Showing 47 changed files with 98 additions and 191 deletions.
50 changes: 25 additions & 25 deletions cmd/configure/configure.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,53 @@ levels:
plant: {{ .Plant }}

interval: 10s # control cycle interval
{{- if ne (len .SponsorToken) 0 }}
{{- if .SponsorToken }}

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 }}
{{- if .Meters }}

meters:
{{- range .Meters }}
{{- range .Meters }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Chargers) 0 }}
{{- end }}
{{- if .Chargers }}

chargers:
{{- range .Chargers }}
{{- range .Chargers }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Vehicles) 0 }}
{{- end }}
{{- if .Vehicles }}

vehicles:
{{- range .Vehicles }}
{{- range .Vehicles }}
- {{ .Yaml | indent 2 | trim }}
{{- end }}
{{- end }}
{{- if ne (len .Chargers) 0 }}
{{- end }}
{{- if .Chargers }}

loadpoints:
{{- range .Loadpoints }}
{{- range .Loadpoints }}
- title: {{ .Title }}
charger: {{ .Charger }}
{{- if .ChargeMeter }}
{{- if .ChargeMeter }}
meter: {{ .ChargeMeter }}
{{- end }}
{{- if .Vehicle }}
{{- end }}
{{- if .Vehicle }}
vehicle: {{ .Vehicle }}
{{- end }}
{{- end }}
mode: {{ .Mode }}
phases: {{ .Phases }}
mincurrent: {{ .MinCurrent }}
maxcurrent: {{ .MaxCurrent }}
resetOnDisconnect: {{ .ResetOnDisconnect }}
{{- end }}
{{- end }}
{{- end }}

site:
Expand All @@ -67,24 +67,24 @@ site:
{{- if .Site.Grid }}
grid: {{ .Site.Grid }}
{{- end }}
{{- if len .Site.PVs }}
{{- if .Site.PVs }}
pv:
{{- range .Site.PVs }}
{{- range .Site.PVs }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- if len .Site.Batteries }}
{{- if .Site.Batteries }}
battery:
{{- range .Site.Batteries }}
{{- range .Site.Batteries }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- if ne (len .Hems) 0 }}
{{- if .Hems }}

hems:
{{ .Hems | indent 2 }}
{{- end }}
{{- if ne (len .EEBUS) 0 }}
{{- if .EEBUS }}

eebus:
{{ .EEBUS | indent 2 }}
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/alpha-ess-smile_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ render:
id: 85
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand Down Expand Up @@ -97,7 +96,6 @@ render:
id: 85
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/e3dc_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -28,7 +27,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/fronius-gen24_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -29,7 +28,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/fronius-gen24_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -29,7 +28,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/fronius-solarapi-v1_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
template: fronius-solarapi-v1
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -25,7 +24,6 @@ render:
template: fronius-solarapi-v1
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/goodwe-hybrid_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ render:
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand Down Expand Up @@ -97,7 +96,6 @@ render:
id: 247
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/growatt-hybrid-tlxh_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ render:
id: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand Down Expand Up @@ -97,7 +96,6 @@ render:
id: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/growatt-hybrid_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ render:
id: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand Down Expand Up @@ -97,7 +96,6 @@ render:
id: 1
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/huawei-dongle-powersensor_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ render:
host: 192.0.2.2 # Hostname
port: 502 # Port
timeout: 15s # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -49,7 +48,6 @@ render:
host: 192.0.2.2 # Hostname
port: 502 # Port
timeout: 15s # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/huawei-sun2000-rs485_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ render:
host: 192.0.2.2 # Hostname
port: 502 # Port
storageunit: 1 # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand Down Expand Up @@ -99,7 +98,6 @@ render:
host: 192.0.2.2 # Hostname
port: 502 # Port
storageunit: 1 # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/kostal-piko_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
template: kostal-piko
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -25,7 +24,6 @@ render:
template: kostal-piko
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
1 change: 0 additions & 1 deletion templates/docs/meter/kostal-plenticore_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ render:
id: 71
host: 192.0.2.2 # Hostname
port: 1502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/lg-ess-home-8-10_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
registration: DE200... # Registriernummer des LG ESS HOME Wechselrichters.
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -29,7 +28,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
registration: DE200... # Registriernummer des LG ESS HOME Wechselrichters.
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/openems_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
password: user # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -26,7 +25,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
password: user # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/openems_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
password: user # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -26,7 +25,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
password: user # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/rct-power_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
template: rct-power
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -25,7 +24,6 @@ render:
template: rct-power
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/senec-home_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ render:
template: senec-home
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -25,7 +24,6 @@ render:
template: senec-home
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
2 changes: 0 additions & 2 deletions templates/docs/meter/sma-data-manager_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ render:
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: pv
default: |
type: template
Expand All @@ -31,7 +30,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
port: 502 # Port # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
1 change: 0 additions & 1 deletion templates/docs/meter/sma-hybrid_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ render:
id: 3
host: 192.0.2.2 # Hostname
port: 502 # Port
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
1 change: 0 additions & 1 deletion templates/docs/meter/sma-inverter_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ render:
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
password: # Passwort für Benutzergruppe Benutzer # Optional
capacity: 50 # Akkukapazität in kWh # Optional
- usage: battery
default: |
type: template
Expand Down
Loading

0 comments on commit 33b780b

Please sign in to comment.