Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2dc4727

Browse files
committed
sungrow-hybrid: refactor hold battery mechanism
The previously used forced-mode does not allow charging the battery if enough solar is available.Instead, we should limit the battery max discharge power which effectively stops discharging but still allows for charging.This workaround is based on the HA script from here:https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/e8142fce09930a8b7c879ed18160f4e094b2a433/modbus_sungrow.yaml#L3315
1 parentb0aa746 commit2dc4727

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎templates/definition/meter/sungrow-hybrid.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,22 @@ render: |
186186
address: 13050 # Charge/discharge command
187187
type: writesingle
188188
decode: uint16
189+
# Reset max battery discharge power
190+
- source: const
191+
value: 1060 # 10.6kW, max allowed value for register
192+
set:
193+
source: modbus
194+
{{- include "modbus" . | indent 10 }}
195+
register:
196+
address: 33047 # Battery max discharge power
197+
type: writesingle
198+
decode: uint16
189199
- case: 2 # hold
190200
set:
191201
source: sequence
192202
set:
193203
- source: const
194-
value:2 #Forced mode (charge/discharge/stop)
204+
value:0 #Self-consumption mode (Default)
195205
set:
196206
source: modbus
197207
{{- include "modbus" . | indent 10 }}
@@ -208,6 +218,16 @@ render: |
208218
address: 13050 # Charge/discharge command
209219
type: writesingle
210220
decode: uint16
221+
# Set max battery discharge power, effectively stops discharging
222+
- source: const
223+
value: 1 # 0.01kW, min allowed value for register
224+
set:
225+
source: modbus
226+
{{- include "modbus" . | indent 10 }}
227+
register:
228+
address: 33047 # Battery max discharge power
229+
type: writesingle
230+
decode: uint16
211231
- case: 3 # charge
212232
set:
213233
source: sequence

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp