28 lines
677 B
YAML
28 lines
677 B
YAML
template: kostal-piko-mp-plus
|
|
products:
|
|
- brand: Kostal
|
|
description:
|
|
generic: Piko MP Plus
|
|
guidedsetup:
|
|
enable: true
|
|
linked:
|
|
- template: kostal-ksem-inverter
|
|
usage: grid
|
|
- template: kostal-ksem
|
|
usage: grid
|
|
excludetemplate: kostal-ksem-inverter
|
|
params:
|
|
- name: usage
|
|
choice: ["pv"]
|
|
- name: host
|
|
example: 192.0.2.2
|
|
required: true
|
|
render: |
|
|
type: custom
|
|
power:
|
|
{{- if eq .usage "pv" }}
|
|
# PV
|
|
source: http
|
|
uri: http://{{ .host }}/measurements.xml
|
|
jq: .root.Device.Measurements.Measurement[] | select(.attrType == "AC_Power") | if has ("attrValue") then .attrValue else "0" end | tonumber
|
|
{{- end -}}
|