Skip to content

Commit

Permalink
Add Weishaupt SG Ready charger (#18026)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadrabbit87 authored Jan 3, 2025
1 parent ef29935 commit e708c0b
Showing 1 changed file with 113 additions and 0 deletions.
113 changes: 113 additions & 0 deletions templates/definition/charger/weishaupt-wpm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
template: weishaupt-wpm
products:
- brand: Weishaupt
description:
generic: WPM (SG Ready)
group: heating
# requirements:
# evcc: ["sponsorship"]
params:
- name: modbus
choice: ["tcpip"]
- name: tempsource
type: choice
choice: ["", "warmwater", "buffer"]
description:
de: "Temperaturquelle"
en: "Temperature source"
render: |
type: sgready
getmode:
source: map
values:
8: 1 # ABTAUEN
10: 3 # EVU_SPERRE
14: 2 # ERHOEHTER_BETRIEB
18: 3 # FROSTSCHUTZ
19: 1 # HEIZBETRIEB
get:
source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 30006
type: input
encoding: uint16
setmode:
source: switch
switch:
- case: 1 # normal
set:
source: sequence
set:
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45101 # 4001
type: writesingle
encoding: uint16
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45102 # 4002
type: writesingle
encoding: uint16
- case: 2 # boost
set:
source: sequence
set:
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45101
type: writesingle
encoding: uint16
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45102
type: writesingle
encoding: uint16
- case: 3 # dimm
set:
source: sequence
set:
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45101
type: writesingle
encoding: uint16
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 45102
type: writesingle
encoding: uint16
{{- if .tempsource }}
temp:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: {{ if eq .tempsource "warmwater" -}} 32102 {{ else }} 33104 {{- end }} # 32102 = WW; 33104 Vorlauf
type: input
encoding: int16
scale: 0.1
{{- end }}

0 comments on commit e708c0b

Please sign in to comment.