Huawei: optimized force-charging (#30975)
This commit is contained in:
parent
2269e6a463
commit
662e5d2059
1 changed files with 0 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue