Huawei: optimized force-charging (#30975)

This commit is contained in:
CiNcH83 2026-06-17 21:14:46 +02:00 • committed by GitHub
parent 2269e6a463
commit 662e5d2059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -362,17 +362,6 @@ render: |
out := rated
if limit < rated { out = limit }
out
{{- if eq .forceaccharging "false" }}
- source: const
value: 0 # Disable
set:
source: modbus
{{- include "modbus" . | indent 16 }}
register:
address: 47087 # Charge from grid
type: writesingle
encoding: uint16
{{- end }}
- case: 2 # hold
set:
source: sequence
@ -395,30 +384,10 @@ render: |
address: 47077 # Max. Discharge Power
type: writemultiple
encoding: uint32
{{- if eq .forceaccharging "false" }}
- source: const
value: 0 # Disable
set:
source: modbus
{{- include "modbus" . | indent 16 }}
register:
address: 47087 # Charge from grid
type: writesingle
encoding: uint16
{{- end }}
- case: 3 # charge
set:
source: sequence
set:
- source: const
value: 1 # Enable
set:
source: modbus
{{- include "modbus" . | indent 16 }}
register:
address: 47087 # Charge from grid
type: writesingle
encoding: uint16
# clamp maxchargepower to the inverter rated max (37046) for parity
# with discharge, avoiding a stale out-of-range value
- source: go