From 361f92878aa37dbd6336e46ac91f8bf2055c6eda Mon Sep 17 00:00:00 2001 From: Ingo <71161062+iseeberg79@users.noreply.github.com> Date: Mon, 15 Jun 2026 07:01:34 +0200 Subject: [PATCH] Kostal Plenticore: fix pv energy encoding (#30862) --- templates/definition/meter/kostal-plenticore-gen2.yaml | 2 +- templates/definition/meter/kostal-plenticore.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/definition/meter/kostal-plenticore-gen2.yaml b/templates/definition/meter/kostal-plenticore-gen2.yaml index 7da184e95..3775f397d 100644 --- a/templates/definition/meter/kostal-plenticore-gen2.yaml +++ b/templates/definition/meter/kostal-plenticore-gen2.yaml @@ -71,7 +71,7 @@ render: | register: address: 1056 # total DC PV energy (sum), Wh type: holding - decode: float32s + encoding: {{ if (eq .endianness "big") }}float32{{ else }}float32s{{ end }} scale: 0.001 # Wh -> kWh maxacpower: {{ .maxacpower }} # W {{- end }} diff --git a/templates/definition/meter/kostal-plenticore.yaml b/templates/definition/meter/kostal-plenticore.yaml index c25883727..80303ce83 100644 --- a/templates/definition/meter/kostal-plenticore.yaml +++ b/templates/definition/meter/kostal-plenticore.yaml @@ -65,7 +65,7 @@ render: | register: address: 1056 # total DC PV energy (sum), Wh type: holding - decode: float32s + encoding: {{ if (eq .endianness "big") }}float32{{ else }}float32s{{ end }} scale: 0.001 # Wh -> kWh maxacpower: {{ .maxacpower }} # W {{- end }}