chore: use 'source' as plugin selector

This commit is contained in:
andig 2022-02-23 13:17:04 +01:00
parent 4382259b6c
commit fe0478ff43

View file

@ -33,7 +33,7 @@ render: |
{{- end }}
{{- if eq .usage "battery" }}
power:
type: calc
source: calc
mul:
- source: modbus
{{include "modbus" . | indent 4}}
@ -41,7 +41,7 @@ render: |
address: 13021 # Battery power
type: input
decode: int16
- type: calc
- source: calc
add:
- source: modbus
{{include "modbus" . | indent 6}}