From 662e5d2059642ac059f4fb2ea7af8cb7a3648c64 Mon Sep 17 00:00:00 2001 From: CiNcH83 Date: Wed, 17 Jun 2026 21:14:46 +0200 Subject: [PATCH] Huawei: optimized force-charging (#30975) --- .../meter/huawei-sun2000-hybrid.yaml | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/templates/definition/meter/huawei-sun2000-hybrid.yaml b/templates/definition/meter/huawei-sun2000-hybrid.yaml index 2cb9ee9a3..73d2fd5be 100644 --- a/templates/definition/meter/huawei-sun2000-hybrid.yaml +++ b/templates/definition/meter/huawei-sun2000-hybrid.yaml @@ -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