SolarEdge: fix sunspec readings (#12173)

This commit is contained in:
andig 2024-02-09 18:12:25 +01:00 • committed by GitHub
parent 0e57493d83
commit 75fcac5e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 12 deletions

View file

@ -37,17 +37,19 @@ render: |
power:
source: calc
add:
- source: sunspec
{{- include "modbus" . | indent 4 }}
timeout: {{ .timeout }}
value: 101|103:DCW
- source: modbus
{{- include "modbus" . | indent 4 }}
timeout: {{ .timeout }}
register:
address: 62836 # Battery 1 Instantaneous Power
type: holding
decode: float32s
- source: sunspec
{{- include "modbus" . | indent 6 }}
timeout: {{ .timeout }}
value:
- 101:DCW
- 103:DCW
- source: modbus
{{- include "modbus" . | indent 6 }}
timeout: {{ .timeout }}
register:
address: 62836 # Battery 1 Instantaneous Power
type: holding
decode: float32s
{{- end }}
{{- if eq .usage "battery" }}
power:

View file

@ -33,5 +33,7 @@ render: |
source: sunspec
{{- include "modbus" . | indent 2 }}
timeout: {{ .timeout }}
value: 101|103:W # sunspec inverter AC power reading
value:
- 101:W
- 103:W
{{- end }}