Skip to content

Commit

Permalink
Fronius Gen24: upgrade template to sunspec syntax (#16861)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Oct 25, 2024
1 parent c458bb3 commit 7191ce9
Showing 1 changed file with 63 additions and 13 deletions.
76 changes: 63 additions & 13 deletions templates/definition/meter/fronius-gen24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -49,7 +100,6 @@ render: |
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- if eq .usage "battery" }}
type: custom
power:
source: calc
add:
Expand Down

0 comments on commit 7191ce9

Please sign in to comment.