Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default energy storage mode for sofarsolar-g3 #17777

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading