Add ADA P1 meter (#26745)

This commit is contained in:
Greenhess Kft. 2026-01-17 12:06:40 +01:00 • committed by GitHub
parent 5a768d3e88
commit 38b5b9db13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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