Skip to content

Commit

Permalink
Sofarsolar G3: add default energy storage mode (#17777)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschlipf authored Dec 18, 2024
1 parent cdd4c85 commit 9656e94
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/definition/meter/sofarsolar-g3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ params:
deprecated: true
- name: capacity
advanced: true
- name: defaultmode
description:
de: Standardmodus für die aktive Batteriesteuerung. Gültige Werte sind 0 (Eigenbedarfsmodus), 1 (Nutzungszeitmodus), 2 (Zeitmodus), 4 (Peak-shaving Modus)
en: Default mode for battery control. Valid values are 0 (self use), 1 (time of use), 2 (timing mode), 4 (peak-shaving mode)
default: 0 # self use
usages: ["battery"]
advanced: true
# battery control
- name: minsoc
type: int
Expand Down Expand Up @@ -150,7 +157,7 @@ render: |
- case: 1 # normal
set:
source: const
value: 0 # self-use
value: {{ .defaultmode }} # set back to default energy storage mode
set:
source: ignore
error: "modbus: response data size '18' does not match count '4'"
Expand Down

0 comments on commit 9656e94

Please sign in to comment.