Skip to content

Commit

Permalink
Vzlogger: add phase values (#15935)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchoof authored Sep 7, 2024
1 parent 58cf1fb commit 7b01721
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 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,39 @@ render: |
{{- if .scale }}
scale: {{ .scale }}
{{- end }}
{{ if and .l1currentuuid .l2currentuuid .l3currentuuid -}}
currents:
- 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]
{{ end -}}
{{ if and .l1poweruuid .l2poweruuid .l3poweruuid -}}
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]
{{ end -}}
{{ if and .l1voltageuuid .l2voltageuuid .l3voltageuuid -}}
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]
{{ end -}}

0 comments on commit 7b01721

Please sign in to comment.