SunSpec: add returnEnergy support (#30515)

This commit is contained in:
premultiply 2026-06-04 23:38:12 +02:00 • committed by GitHub
parent aaed8c24a3
commit 233cd72a95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 106 additions and 0 deletions

View file

@ -57,6 +57,16 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
value:
- 201:TotWhExp
- 211:TotWhExp
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
uri: {{ joinHostPort .host .port }}
@ -179,6 +189,12 @@ render: |
id: 1
value: 160:4:DCWH # mppt 4 (discharge)
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: 1
value: 160:3:DCWH # mppt 3 (charge)
scale: 0.001
soc:
source: sunspec
uri: {{ joinHostPort .host .port }}

View file

@ -44,6 +44,16 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
value:
- 201:TotWhExp
- 211:TotWhExp
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
uri: {{ joinHostPort .host .port }}
@ -175,6 +185,12 @@ render: |
id: 1
value: 160:5:DCWH # mppt 5 (discharge)
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: 1
value: 160:4:DCWH # mppt 4 (charge)
scale: 0.001
soc:
source: sunspec
uri: {{ joinHostPort .host .port }}

View file

@ -26,6 +26,13 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}

View file

@ -25,6 +25,13 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}

View file

@ -44,6 +44,12 @@ render: |
subdevice: 1 # Metering device
value: 203:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
subdevice: 1 # Metering device
value: 203:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}

View file

@ -33,6 +33,13 @@ render: |
subdevice: 1 # Metering device
value: 203:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
timeout: {{ .timeout }}
subdevice: 1 # Metering device
value: 203:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}

View file

@ -29,6 +29,13 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}
@ -117,6 +124,11 @@ render: |
{{- include "modbus" . | indent 2 }}
value: 160:4:DCWH # mppt 4 (discharge)
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value: 160:3:DCWH # mppt 3 (charge)
scale: 0.001
soc:
source: sunspec
{{- include "modbus" . | indent 2 }}

View file

@ -35,6 +35,17 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 201:TotWhExp
- 211:TotWhExp
- 202:TotWhExp
- 212:TotWhExp
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
{{- include "modbus" . | indent 4 }}

View file

@ -39,6 +39,18 @@ render: |
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
value:
- 201:TotWhExp
- 211:TotWhExp
- 202:TotWhExp
- 212:TotWhExp
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
currents:
- source: sunspec
uri: {{ joinHostPort .host .port }}
@ -157,4 +169,16 @@ render: |
- 203:TotWhExp
- 213:TotWhExp
scale: 0.001
returnenergy:
source: sunspec
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
value:
- 201:TotWhImp
- 211:TotWhImp
- 202:TotWhImp
- 212:TotWhImp
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
{{- end }}