From 34cedf93e3b1c9ffc2511c0d0ad983a1a0012ca4 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 20 Feb 2022 17:31:08 +0100 Subject: [PATCH] Fronius: map pv to mppt 1/2 (#2652) --- templates/definition/meter/fronius-gen24.yaml | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/templates/definition/meter/fronius-gen24.yaml b/templates/definition/meter/fronius-gen24.yaml index 3209ecbd7..46c24958d 100644 --- a/templates/definition/meter/fronius-gen24.yaml +++ b/templates/definition/meter/fronius-gen24.yaml @@ -21,7 +21,23 @@ render: | id: 200 power: 213:W # sunspec model 203 meter {{- end }} - {{- if or (eq .usage "pv") (eq .usage "battery") }} + {{- if eq .usage "pv" }} + type: custom + power: + source: calc + add: + - source: modbus + model: sunspec + uri: {{ .host }}:{{ .port }} + id: 1 + value: 160:1:DCW # mppt 1 + - source: modbus + model: sunspec + uri: {{ .host }}:{{ .port }} + id: 1 + value: 160:2:DCW # mppt 2 + {{- end }} + {{- if eq .usage "battery" }} type: custom power: source: calc @@ -37,8 +53,6 @@ render: | uri: {{ .host }}:{{ .port }} id: 1 value: 160:4:DCW # mppt 4 discharge - {{- end }} - {{- if eq .usage "battery" }} soc: source: modbus model: sunspec