From e33a68255e95cd80418d62e6bf399c3cfae1a468 Mon Sep 17 00:00:00 2001 From: othi Date: Thu, 19 Dec 2024 12:47:08 +0100 Subject: [PATCH] Add slimmelezer-luxembourg (#17810) --- .../meter/slimmelezer-luxembourg.yaml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 templates/definition/meter/slimmelezer-luxembourg.yaml diff --git a/templates/definition/meter/slimmelezer-luxembourg.yaml b/templates/definition/meter/slimmelezer-luxembourg.yaml new file mode 100644 index 000000000..0411a58df --- /dev/null +++ b/templates/definition/meter/slimmelezer-luxembourg.yaml @@ -0,0 +1,95 @@ +template: slimmelezer-luxembourg +products: + - brand: Zuidwijk + description: + generic: SlimmeLezer(+) in Luxembourg +requirements: + description: + de: Slimmelezer-Geräte in Luxemburg verwenden für verschiedene Sensoren andere Namen. + en: Slimmelezer devices use different sensor names in Luxembourg. +params: + - name: usage + choice: ["grid"] + - name: host +render: | + type: custom + power: + source: calc + add: + - source: http + uri: http://{{ .host }}/sensor/power_consumed + headers: + - content-type: application/json + jq: .value + scale: 1000 + - source: http + uri: http://{{ .host }}/sensor/power_produced + headers: + - content-type: application/json + jq: .value + scale: -1000 + energy: + source: http + uri: http://{{ .host }}/sensor/energy_produced_luxembourg + headers: + - content-type: application/json + jq: .value + currents: + - source: http + uri: http://{{ .host }}/sensor/current_phase_1 + headers: + - content-type: application/json + jq: .value + - source: http + uri: http://{{ .host }}/sensor/current_phase_2 + headers: + - content-type: application/json + jq: .value + - source: http + uri: http://{{ .host }}/sensor/current_phase_3 + headers: + - content-type: application/json + jq: .value + powers: + - source: calc + add: + - source: http + uri: http://{{ .host }}/sensor/power_produced_phase_1 + headers: + - content-type: application/json + jq: .value + scale: -1000 + - source: http + uri: http://{{ .host }}/sensor/power_consumed_phase_1 + headers: + - content-type: application/json + jq: .value + scale: 1000 + - source: calc + add: + - source: http + uri: http://{{ .host }}/sensor/power_produced_phase_2 + headers: + - content-type: application/json + jq: .value + scale: -1000 + - source: http + uri: http://{{ .host }}/sensor/power_consumed_phase_2 + headers: + - content-type: application/json + jq: .value + scale: 1000 + - source: calc + add: + - source: http + uri: http://{{ .host }}/sensor/power_produced_phase_3 + headers: + - content-type: application/json + jq: .value + scale: -1000 + - source: http + uri: http://{{ .host }}/sensor/power_consumed_phase_3 + headers: + - content-type: application/json + jq: .value + scale: 1000