From 0ac212bcb19b3228e4d82ebceae516ee81586f7a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 11:52:24 +0200 Subject: [PATCH] Atmoce: remove battery curtailment (#32803) --- templates/definition/meter/atmoce.yaml | 59 -------------------------- 1 file changed, 59 deletions(-) diff --git a/templates/definition/meter/atmoce.yaml b/templates/definition/meter/atmoce.yaml index 8c879cc4d..6a15ddfce 100644 --- a/templates/definition/meter/atmoce.yaml +++ b/templates/definition/meter/atmoce.yaml @@ -413,65 +413,6 @@ render: | decode: uint32 {{- end }} {{- if not ( eq .firmware "<01.01.00.28.15" ) }} - curtail: - source: switch - switch: - - case: 100 # No curtailment - set: - source: const - value: 0xFFFFFFFF # No limit - set: - source: modbus - {{- include "modbus" . | indent 10 }} - register: - address: 60324 # Grid Maximum Export Power (kW * 1000) - type: writemultiple - encoding: uint32 - default: - source: go - in: - - name: maxdischargepower - type: int - config: - source: const - value: {{ .maxdischargepower }} - script: | - powerlimit := ( maxdischargepower * curtail ) / 100 - powerlimit - out: - - name: powerlimit - type: int - config: - source: modbus - {{- include "modbus" . | indent 10 }} - register: - address: 60324 # Grid Maximum Export Power (kW * 1000) - type: writemultiple - encoding: uint32 - curtailed: # the power limit is expressed as percent of nominal discharge power - source: go - in: - - name: limit - type: int - config: - source: modbus - {{- include "modbus" . | indent 8 }} - register: - address: 60324 # Grid Maximum Export Power (kW * 1000) - type: holding - decode: uint32 - - name: maxdischargepower - type: int - config: - source: const - value: {{ .maxdischargepower }} - script: | - percent := 100 - if limit != 0xFFFFFFFF && maxdischargepower > 0 { - // round, the watt conversion does not reproduce the written percent exactly - percent = (limit*100 + maxdischargepower/2) / maxdischargepower - } - percent dim: source: ifelse if: