Skip to content

Commit

Permalink
Fronius: map pv to mppt 1/2 (evcc-io#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and dontbyte committed Aug 2, 2022
1 parent 9442ddf commit 2363880
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions templates/definition/meter/fronius-gen24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2363880

Please sign in to comment.