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 }}