Skip to content

Commit

Permalink
Fronius Gen24: add battery control (#15363)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Aug 13, 2024
1 parent 9bf8dc7 commit 1800a30
Showing 1 changed file with 85 additions and 1 deletion.
86 changes: 85 additions & 1 deletion templates/definition/meter/fronius-gen24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,95 @@ render: |
uri: {{ .host }}:{{ .port }}
id: 1
value: 160:4:DCW # mppt 4 discharge
energy:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 160:4:DCWH # mppt 4 (discharge)
scale: 0.001
soc:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:ChaState
value: 124:0:ChaState
batterymode: # model 124
source: switch
switch:
- case: 1 # normal
set:
source: sequence
set:
- source: const
value: 0 # off
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:ChaGriSet
- source: const
value: 0
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:StorCtl_Mod
- source: const
value: 100 # %
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:OutWRte
- case: 2 # hold
set:
source: sequence
set:
- source: const
value: 0 # off
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:ChaGriSet
- source: const
value: 2
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:StorCtl_Mod
- source: const
value: 0 # %
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:OutWRte
- case: 3 # charge
set:
source: sequence
set:
- source: const
value: 1 # off
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:ChaGriSet
- source: const
value: 2
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:StorCtl_Mod
- source: const
value: -100 # %
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
id: 1
value: 124:0:OutWRte
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
Expand Down

0 comments on commit 1800a30

Please sign in to comment.