Skip to content

Commit

Permalink
Modbus: replace remaining mbmd sunspec instances (#16871)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Oct 26, 2024
1 parent b5a1b15 commit 6b51293
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 22 deletions.
72 changes: 61 additions & 11 deletions templates/definition/meter/keba-kecontact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,66 @@ params:
choice: ["tcpip"]
id: 1
render: |
type: mbmd
{{- include "modbus" . }}
model: sunspec
power: Power
energy: Import
type: custom
# sunspec model 203 (int+sf)/ 213 (float) meter
power:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:W
- 213:W
energy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
currents:
- CurrentL1
- CurrentL2
- CurrentL3
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphA
- 213:AphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphB
- 213:AphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphC
- 213:AphC
voltages:
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphA
- 213:PhVphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphB
- 213:PhVphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphC
- 213:PhVphC
powers:
- PowerL1
- PowerL2
- PowerL3
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphA
- 213:WphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphB
- 213:WphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphC
- 213:WphC
72 changes: 61 additions & 11 deletions templates/definition/meter/kostal-ksem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,66 @@ params:
choice: ["tcpip"]
id: 71
render: |
type: mbmd
{{- include "modbus" . }}
model: sunspec
power: Power
energy: Import
type: custom
# sunspec model 203 (int+sf)/ 213 (float) meter
power:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:W
- 213:W
energy:
source: sunspec
{{- include "modbus" . | indent 2 }}
value:
- 203:TotWhImp
- 213:TotWhImp
scale: 0.001
currents:
- CurrentL1
- CurrentL2
- CurrentL3
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphA
- 213:AphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphB
- 213:AphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:AphC
- 213:AphC
voltages:
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphA
- 213:PhVphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphB
- 213:PhVphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:PhVphC
- 213:PhVphC
powers:
- PowerL1
- PowerL2
- PowerL3
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphA
- 213:WphA
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphB
- 213:WphB
- source: sunspec
{{- include "modbus" . | indent 4 }}
value:
- 203:WphC
- 213:WphC

0 comments on commit 6b51293

Please sign in to comment.