Skip to content

Commit

Permalink
Weishaupt WPM: Add meter
Browse files Browse the repository at this point in the history
Based on power requirement.

Not an exact value.
  • Loading branch information
deadrabbit87 committed Jan 23, 2025
1 parent 9e9c15e commit 37778c0
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion templates/definition/charger/weishaupt-wpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ params:
description:
de: "Temperaturquelle"
en: "Temperature source"
- name: powerconsumption
description:
de: "Max. Leistungsaufnahme in kW. Kein exakter Wert, nur zur Anzeige."
en: "Max. power consumption in kW. Not an exact value, only for display."
render: |
type: sgready
getmode:
Expand Down Expand Up @@ -123,4 +127,18 @@ render: |
type: input
encoding: int16
scale: 0.1
{{- end }}
{{- end }}
{{- if .powerconsumption }}
power:
source: calc
mul:
- source: const
value: {{ .powerconsumption }}
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 33103 # Leistungsanforderung
type: input
encoding: int16
scale: 10
{{- end }}

0 comments on commit 37778c0

Please sign in to comment.