chore: simplify
This commit is contained in:
parent
cf5e2bac0f
commit
fda3b066db
1 changed files with 3 additions and 1 deletions
|
|
@ -36,8 +36,8 @@ params:
|
|||
advanced: true
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
{{- if eq .usage "grid" }}
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
|
|
@ -55,6 +55,7 @@ render: |
|
|||
scale: 0.1
|
||||
{{- end }}
|
||||
{{- if eq .usage "pv" }}
|
||||
power:
|
||||
source: calc
|
||||
add:
|
||||
- source: modbus
|
||||
|
|
@ -88,6 +89,7 @@ render: |
|
|||
maxacpower: {{ .maxacpower }} # W
|
||||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue