chore: simplify (#16257)
This commit is contained in:
parent
4f51534bd5
commit
f43cee168e
2 changed files with 2 additions and 6 deletions
|
|
@ -14,9 +14,9 @@ params:
|
|||
- name: capacity
|
||||
advanced: true
|
||||
render: |
|
||||
{{- if eq .usage "grid" }}
|
||||
type: custom
|
||||
# sunspec model 203 (int+sf)/ 213 (float) meter
|
||||
{{- if eq .usage "grid" }}
|
||||
power:
|
||||
source: sunspec
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
|
|
@ -80,7 +80,6 @@ render: |
|
|||
- 213:WphC
|
||||
{{- end }}
|
||||
{{- if eq .usage "pv" }}
|
||||
type: custom
|
||||
power:
|
||||
source: calc
|
||||
add:
|
||||
|
|
@ -103,7 +102,6 @@ render: |
|
|||
scale: 0.001
|
||||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
type: custom
|
||||
power:
|
||||
source: calc
|
||||
add:
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ params:
|
|||
- name: capacity
|
||||
advanced: true
|
||||
render: |
|
||||
{{- if eq .usage "grid" }}
|
||||
type: custom
|
||||
{{- if eq .usage "grid" }}
|
||||
# sunspec model 203 (int+sf)/ 213 (float) meter
|
||||
power:
|
||||
source: sunspec
|
||||
|
|
@ -78,7 +78,6 @@ render: |
|
|||
- 213:WphC
|
||||
{{- end }}
|
||||
{{- if eq .usage "pv" }}
|
||||
type: custom
|
||||
power:
|
||||
source: sunspec
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
|
|
@ -102,7 +101,6 @@ render: |
|
|||
scale: 0.001
|
||||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
type: custom
|
||||
power:
|
||||
source: sunspec
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue