From 38b5b9db13cc1b33536020e05e4cb80cecb1fd7d Mon Sep 17 00:00:00 2001 From: "Greenhess Kft." Date: Sat, 17 Jan 2026 12:06:40 +0100 Subject: [PATCH] Add ADA P1 meter (#26745) --- templates/definition/meter/ada-p1-meter.yaml | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 templates/definition/meter/ada-p1-meter.yaml diff --git a/templates/definition/meter/ada-p1-meter.yaml b/templates/definition/meter/ada-p1-meter.yaml new file mode 100644 index 000000000..e273302e1 --- /dev/null +++ b/templates/definition/meter/ada-p1-meter.yaml @@ -0,0 +1,58 @@ +template: ada-p1-meter +products: + - brand: ADA + description: + generic: P1 Meter +params: + - name: host + default: okosvillanyora.local:8989 + - name: cache + default: 1s +render: | + type: custom + power: + source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + # Power (Watt): Calculated from Import - Export * 1000 + jq: (.instantaneous_power_import | tonumber * 1000) - (.instantaneous_power_export | tonumber * 1000) + energy: + source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + # Total Import Energy (kWh) + jq: .active_import_energy_total | tonumber + currents: + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .current_phase_Bl1 | tonumber + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .current_phase_Bl2 | tonumber + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .current_phase_Bl3 | tonumber + voltages: + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .voltage_phase_l1 | tonumber + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .voltage_phase_l2 | tonumber + - source: http + uri: http://{{ .host }}/json + method: GET + cache: {{ .cache }} + jq: .voltage_phase_l3 | tonumber