Skip to content

Commit

Permalink
SunSpec: align battery control (#18446)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Jan 27, 2025
1 parent be3983b commit 4541a53
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions templates/definition/meter/sunspec-inverter-control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ params:
choice: ["battery"]
- name: modbus
choice: ["tcpip", "rs485"]
- name: maxchargerate
advanced: true
- name: capacity
advanced: true
render: |
Expand Down Expand Up @@ -41,12 +43,6 @@ render: |
set:
source: sequence
set:
- source: const
value: 0 # off
set:
source: sunspec
{{- include "modbus" . | indent 10 }}
value: 124:0:ChaGriSet
- source: const
value: 0
set:
Expand All @@ -63,12 +59,6 @@ render: |
set:
source: sequence
set:
- source: const
value: 0 # off
set:
source: sunspec
{{- include "modbus" . | indent 10 }}
value: 124:0:ChaGriSet
- source: const
value: 2
set:
Expand All @@ -92,7 +82,7 @@ render: |
source: sequence
set:
- source: const
value: 1 # off
value: 1 # on
set:
source: sunspec
{{- include "modbus" . | indent 10 }}
Expand All @@ -104,7 +94,7 @@ render: |
{{- include "modbus" . | indent 10 }}
value: 124:0:StorCtl_Mod
- source: const
value: -100 # %
value: -{{ .maxchargerate }} # %
set:
source: sunspec
{{- include "modbus" . | indent 10 }}
Expand Down

0 comments on commit 4541a53

Please sign in to comment.