Add ADA P1 meter (#26745)
This commit is contained in:
parent
5a768d3e88
commit
38b5b9db13
1 changed files with 58 additions and 0 deletions
58
templates/definition/meter/ada-p1-meter.yaml
Normal file
58
templates/definition/meter/ada-p1-meter.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue