From 06d33c1c51555376a7dc613fd135e342041cf28b Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Wed, 12 Jul 2023 15:06:46 +0200 Subject: [PATCH] Add Youless Energy Meter (#8941) * power * energy total import --- templates/definition/meter/youless.yaml | 22 ++++++++++++++++++++++ templates/docs/meter/youless_0.yaml | 10 ++++++++++ templates/evcc.io/brands.json | 1 + 3 files changed, 33 insertions(+) create mode 100644 templates/definition/meter/youless.yaml create mode 100644 templates/docs/meter/youless_0.yaml diff --git a/templates/definition/meter/youless.yaml b/templates/definition/meter/youless.yaml new file mode 100644 index 000000000..68d076b57 --- /dev/null +++ b/templates/definition/meter/youless.yaml @@ -0,0 +1,22 @@ +template: youless +products: + - brand: Youless + description: + generic: Energy Monitor +params: + - name: usage + choice: ["grid"] + - name: host + required: true +render: | + type: custom + power: + source: http + uri: http://{{ .host }}/e + method: GET + jq: .[0]|.pwr + energy: + source: http + uri: http://{{ .host }}/e + method: GET + jq: .[0]|.p1+.p2 diff --git a/templates/docs/meter/youless_0.yaml b/templates/docs/meter/youless_0.yaml new file mode 100644 index 000000000..ee9f7460d --- /dev/null +++ b/templates/docs/meter/youless_0.yaml @@ -0,0 +1,10 @@ +product: + brand: Youless + description: Energy Monitor +render: + - usage: grid + default: | + type: template + template: youless + usage: grid + host: 192.0.2.2 # IP-Adresse oder Hostname diff --git a/templates/evcc.io/brands.json b/templates/evcc.io/brands.json index ed5dc7fed..ed42d0650 100644 --- a/templates/evcc.io/brands.json +++ b/templates/evcc.io/brands.json @@ -127,6 +127,7 @@ "VARTA", "Victron", "Volkszähler", + "Youless", "ZCS Azzurro" ], "PVBattery": [