evcc-io/templates/definition/meter/youless.yaml

59 lines
1.3 KiB
YAML

template: youless
products:
- brand: Youless
description:
generic: Energy Monitor
requirements:
description:
de: |
Zur Erfassung der PV-Produktion wird ein extern angebundenener S0-Erzeugungszähler benötigt.
Erfordert mindestens Firmware-Version 1.5.0.
en: |
An externally connected S0 generation meter is required to record the solar production.
Firmware version 1.5.0 or higher is required.
params:
- name: usage
choice: ["grid", "pv"]
- name: host
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: http
uri: http://{{ .host }}/e
jq: .[0]|.pwr
energy:
source: http
uri: http://{{ .host }}/e
jq: .[0]|.p1+.p2
currents:
- source: http
uri: http://{{ .host }}/f
jq: .i1
- source: http
uri: http://{{ .host }}/f
jq: .i2
- source: http
uri: http://{{ .host }}/f
jq: .i3
powers:
- source: http
uri: http://{{ .host }}/f
jq: .l1
- source: http
uri: http://{{ .host }}/f
jq: .l2
- source: http
uri: http://{{ .host }}/f
jq: .l3
{{- end }}
{{- if eq .usage "pv" }}
power:
source: http
uri: http://{{ .host }}/e
jq: .[0].ps0
energy:
source: http
uri: http://{{ .host }}/e
jq: .[0].cs0
{{- end }}