From d1a6a1df372fd32cb48b922e83baa1a553f950a7 Mon Sep 17 00:00:00 2001 From: hoermto <48184068+hoermto@users.noreply.github.com> Date: Fri, 20 May 2022 20:03:33 +0200 Subject: [PATCH] Fronius-Gen24: add phase currents for grid meter (#3419) Co-authored-by: hoermto --- templates/definition/meter/fronius-gen24.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/templates/definition/meter/fronius-gen24.yaml b/templates/definition/meter/fronius-gen24.yaml index 22809d621..42949dfd3 100644 --- a/templates/definition/meter/fronius-gen24.yaml +++ b/templates/definition/meter/fronius-gen24.yaml @@ -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