Skip to content

Commit

Permalink
SE: fix hybrid template (#4503)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Sep 18, 2022
1 parent 9c6ebbe commit 2d779a6
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions templates/definition/meter/solaredge-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d779a6

Please sign in to comment.