Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add phase current, power and voltage to the vzlogger template #15935

Merged
merged 3 commits into from
Sep 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions templates/definition/meter/vzlogger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,51 @@ params:
help:
de: Multipliziere Rohwert mit diesem Faktor
en: Multiply by this value
- name: l1currentuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Strom in Phase 1 (OBIS Code 31.7.0)
en: The vzlogger channel uuid for current on phase 1 (OBIS Code 31.7.0)
- name: l2currentuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Strom in Phase 2 (OBIS Code 51.7.0)
en: The vzlogger channel uuid for current on phase 2 (OBIS Code 51.7.0)
- name: l3currentuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Strom in Phase 3 (OBIS Code 71.7.0)
en: The vzlogger channel uuid for current on phase 3 (OBIS Code 71.7.0)
- name: l1poweruuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Leistung in Phase 1 (OBIS Code 16.7.0)
en: The vzlogger channel uuid for power on phase 1 (OBIS Code 16.7.0)
- name: l2poweruuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Leistung in Phase 2 (OBIS Code 36.7.0)
en: The vzlogger channel uuid for power on phase 2 (OBIS Code 36.7.0)
- name: l3poweruuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Leistung in Phase 3 (OBIS Code 56.7.0)
en: The vzlogger channel uuid for power on phase 3 (OBIS Code 56.7.0)
- name: l1voltageuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Spannung in Phase 1 (OBIS Code 32.7.0)
en: The vzlogger channel uuid for voltage on phase 1 (OBIS Code 32.7.0)
- name: l2voltageuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Spannung in Phase 2 (OBIS Code 52.7.0)
en: The vzlogger channel uuid for voltage on phase 2 (OBIS Code 52.7.0)
- name: l3voltageuuid
advanced: true
description:
de: Die vzlogger Kanal uuid für Spannung in Phase 3 (OBIS Code 72.7.0)
en: The vzlogger channel uuid for voltage on phase 3 (OBIS Code 72.7.0)
render: |
type: custom
power: # power reading
Expand All @@ -29,3 +74,33 @@ render: |
{{- if .scale }}
scale: {{ .scale }}
{{- end }}
currents:
StefanSchoof marked this conversation as resolved.
Show resolved Hide resolved
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l1currentuuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l2currentuuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l3currentuuid) }}) | .tuples[0][1]
powers:
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l1poweruuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l2poweruuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l3poweruuid) }}) | .tuples[0][1]
voltages:
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l1voltageuuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l2voltageuuid) }}) | .tuples[0][1]
- source: http
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .l3voltageuuid) }}) | .tuples[0][1]