Skip to content
Closed
Changes from all commits
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
118 changes: 118 additions & 0 deletions templates/definition/meter/eltako-modbus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
template: eltako-modbus
products:
- brand: Eltako
description:
generic: DSZ15DZMOD
requirements:
description:
de: |
Wird das Gateway von Eltako verwendet (ZGW16-IP) müssen folgende Register aktiviert werden: 30001, 30003, 30005, 30007, 30009, 30011, 30013, 30015, 30017, 30053, 30073, 30075
en: |
If you use the modbus gateway from Eltako (ZGW16-IP), you need to activate the following registers in the gateway setting: 30001, 30003, 30005, 30007, 30009, 30011, 30013, 30015, 30017, 30053, 30073, 30075
params:
- name: usage
choice: ["charge", "grid", "pv"]
- name: modbus
choice: ["tcpip"]
port: 502
id: 1
- name: get_powers_per_phase
default: "false"
advanced: true
description:
de: Leistung der einzelnen Phasen abrufen
en: Get power of single phases
help:
de: Die Leistungswerte der einzelnen Phasen werden für die Steuerung nicht benötigt, können jedoch durch evcc abgerufen und angezeigt werden.
en: The power values of the single phases aren't needed for control purposes, but evcc can retrieve and display them.
type: bool
render: |
type: custom
power: # current power in W
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 52
type: input
decode: int32
energy: # meter in kWh
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 72
type: input
decode: int32
scale: 0.01
returnenergy: # return meter in kWh
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 74
type: input
decode: int32
scale: 0.01
{{ if eq .get_powers_per_phase "true" }}
powers: # phase powers in W

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are currents signed? Then powers should be removed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so.
But when i remove them the per phase powers are missing.

Without per phase powers in .yaml:
Image

With per phase powers in .yaml:
Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So? They're not used for anything.

@SnejPro SnejPro Jun 23, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'm interested in this and evcc already shows them for my Sunny Home Manager aswell.

I would suggest to make the power readings per phase optional.

- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 12
type: input
decode: int32
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 14
type: input
decode: int32
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 16
type: input
decode: int32
{{ end }}
currents: # phase currents in A
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 6
type: input
decode: int32
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 8
type: input
decode: int32
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 10
type: input
decode: int32
scale: 0.01
voltages: # phase voltages in V
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 0
type: input
decode: int32
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 2
type: input
decode: int32
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 4
type: input
decode: int32
scale: 0.01
Loading