Fronius Gen24: upgrade template to sunspec syntax (#16861)

This commit is contained in:
andig 2024-10-25 16:24:46 +02:00 • committed by GitHub
parent c458bb33c8
commit 7191ce9fe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,21 +20,72 @@ params:
advanced: true
- name: maxacpower
render: |
# reference: https://github.com/volkszaehler/mbmd/blob/master/meters/sunspec/models.go
type: custom
# sunspec model 203 (int+sf)/ 213 (float) meter
{{- if eq .usage "grid" }}
type: mbmd
uri: {{ .host }}:{{ .port }}
id: 200
model: sunspec
power: Power
energy: Import
currents: # currents are signed already
- CurrentL1
- CurrentL2
- CurrentL3
power:
source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:W
- 213:W
energy:
source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
currents:
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:AphA
- 213:AphA
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:AphB
- 213:AphB
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:AphC
- 213:AphC
voltages:
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:PhVphA
- 213:PhVphA
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:PhVphB
- 213:PhVphB
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:PhVphC
- 213:PhVphC
powers:
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:WphA
- 213:WphA
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:WphB
- 213:WphB
- source: sunspec
uri: {{ .host }}:{{ .port }}
value:
- 203:WphC
- 213:WphC
{{- end }}
{{- if eq .usage "pv" }}
type: custom
power:
source: calc
add:
@ -49,7 +100,6 @@ render: |
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- if eq .usage "battery" }}
type: custom
power:
source: calc
add: