SE: fix hybrid template (#4503)

This commit is contained in:
premultiply 2022-09-18 10:36:06 +02:00 • committed by GitHub
parent 9c6ebbec04
commit 2d779a6f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,22 +33,12 @@ render: |
scale: -1
{{- end }}
{{- if eq .usage "pv" }}
source: calc
add:
- source: modbus
uri: {{ .host }}:{{ .port }} # Port 502 (SetApp) or 1502 (LCD)
id: 1
timeout: {{ .timeout }}
model: sunspec
value: DCPower
- source: modbus
uri: {{ .host }}:{{ .port }} # Port 502 (SetApp) or 1502 (LCD)
id: 1
timeout: {{ .timeout }}
register:
address: 62836 # Battery 1 Instantaneous Power
type: holding
decode: float32s
source: modbus
uri: {{ .host }}:{{ .port }} # Port 502 (SetApp) or 1502 (LCD)
id: 1
timeout: {{ .timeout }}
model: sunspec
value: DCPower
{{- end }}
{{- if eq .usage "battery" }}
source: modbus