meter/hybrid: fix pv energy readings in SunSpec hybrid inverter templates (#29955)

This commit is contained in:
Copilot 2026-05-17 09:58:49 +02:00 • committed by GitHub
parent 68029759b1
commit 07b009391a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 15 deletions

View file

@ -66,10 +66,20 @@ render: |
{{- include "modbus" . | indent 4 }}
value: 160:3:DCW # string 3
energy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value: 103:WH # total yield
scale: 0.001
source: calc
add:
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:1:DCWH # string 1
scale: 0.001
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:2:DCWH # string 2
scale: 0.001
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:3:DCWH # string 3
scale: 0.001
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- if eq .usage "battery" }}

View file

@ -60,10 +60,20 @@ render: |
{{- include "modbus" . | indent 4 }}
value: 160:3:DCW # string 3
energy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value: 103:WH # total yield
scale: 0.001
source: calc
add:
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:1:DCWH # string 1
scale: 0.001
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:2:DCWH # string 2
scale: 0.001
- source: sunspec
{{- include "modbus" . | indent 4 }}
value: 160:3:DCWH # string 3
scale: 0.001
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- if eq .usage "battery" }}

View file

@ -102,13 +102,6 @@ render: |
address: 62836 # Battery 1 Instantaneous Power
type: holding
decode: float32nans
energy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 101:WH
- 103:WH
scale: 0.001
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- if eq .usage "battery" }}