Fronius-Gen24: add phase currents for grid meter (#3419)
Co-authored-by: hoermto <hoermto@thoermann.net>
This commit is contained in:
parent
4457badac0
commit
d1a6a1df37
1 changed files with 16 additions and 1 deletions
|
|
@ -21,12 +21,27 @@ params:
|
|||
advanced: true
|
||||
valuetype: bool
|
||||
render: |
|
||||
# reference: https://github.com/volkszaehler/mbmd/blob/master/meters/sunspec/models.go
|
||||
{{- if eq .usage "grid" }}
|
||||
type: modbus
|
||||
model: sunspec
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
id: 200
|
||||
power: {{ if eq .integer "true" }}203{{ else }}213{{ end }}:W # sunspec model 203/213 meter
|
||||
{{ if eq .integer "true" }}
|
||||
# sunspec model 203 (int+sf) meter
|
||||
power: 203:W
|
||||
currents:
|
||||
- 203:AphA
|
||||
- 203:AphB
|
||||
- 203:AphC
|
||||
{{ else }}
|
||||
# sunspec model 213 (float) meter
|
||||
power: 213:W
|
||||
currents:
|
||||
- 213:AphA
|
||||
- 213:AphB
|
||||
- 213:AphC
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if eq .usage "pv" }}
|
||||
type: custom
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue