Youless: Add pv meter (#9023)

This commit is contained in:
premultiply 2023-07-19 14:59:27 +02:00 • committed by GitHub
parent fad7d2537d
commit 9efa2aa2d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 1 deletions

View file

@ -3,13 +3,20 @@ products:
- brand: Youless
description:
generic: Energy Monitor
requirements:
description:
de: |
Zur Erfassung der PV-Produktion wird ein extern angebundenener S0-Erzeugungszähler benötigt.
en: |
An externally connected S0 generation meter is required to record the solar production.
params:
- name: usage
choice: ["grid"]
choice: ["grid", "pv"]
- name: host
required: true
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: http
uri: http://{{ .host }}/e
@ -20,3 +27,16 @@ render: |
uri: http://{{ .host }}/e
method: GET
jq: .[0]|.p1+.p2
{{- end }}
{{- if eq .usage "pv" }}
power:
source: http
uri: http://{{ .host }}/e
method: GET
jq: .[0].ps0
energy:
source: http
uri: http://{{ .host }}/e
method: GET
jq: .[0].cs0
{{- end }}

View file

@ -1,6 +1,9 @@
product:
brand: Youless
description: Energy Monitor
description: |
Zur Erfassung der PV-Produktion wird ein extern angebundenener S0-Erzeugungszähler benötigt.
render:
- usage: grid
default: |
@ -8,3 +11,9 @@ render:
template: youless
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
- usage: pv
default: |
type: template
template: youless
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname

View file

@ -174,6 +174,7 @@
"TP-Link",
"VARTA",
"Victron",
"Youless",
"ZCS Azzurro"
],
"Vehicles": [