Skip to content

Commit

Permalink
Revert "SE: fix hybrid template (#4503)" (#4528)
Browse files Browse the repository at this point in the history
This reverts commit 2d779a6.
  • Loading branch information
premultiply committed Sep 19, 2022
1 parent 63cf4d5 commit 27d42a1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions templates/definition/meter/solaredge-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,22 @@ render: |
scale: -1
{{- end }}
{{- if eq .usage "pv" }}
source: modbus
uri: {{ .host }}:{{ .port }} # Port 502 (SetApp) or 1502 (LCD)
id: 1
timeout: {{ .timeout }}
model: sunspec
value: DCPower
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
{{- end }}
{{- if eq .usage "battery" }}
source: modbus
Expand Down

0 comments on commit 27d42a1

Please sign in to comment.