evcc-io/templates/definition/meter/e3dc-modbus.yaml
2026-04-07 08:27:23 +02:00

58 lines
1.3 KiB
YAML

template: e3dc
deprecated: true
products:
- brand: E3/DC
params:
- name: usage
choice: ["grid", "pv", "battery"]
- name: host
- name: port
default: 502
- preset: battery-params
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
uri: {{ joinHostPort .host .port }}
register:
type: holding
decode: int32s
address: 40073 # Hausverbrauchsleistung in Watt
{{- end }}
{{- if eq .usage "pv" }}
power:
source: calc
add:
- source: modbus
uri: {{ joinHostPort .host .port }}
register:
type: holding
decode: int32s
address: 40067 # Photovoltaikleistung in Watt
- source: modbus
uri: {{ joinHostPort .host .port }}
register:
type: holding
decode: int32s
address: 40075 # Leistung zusätzlicher Einspeiser in Watt
scale: -1 # reverse sign
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
uri: {{ joinHostPort .host .port }}
register:
type: holding
decode: int32s
address: 40069 # Batterieleistung in Watt
scale: -1 # reverse direction
soc:
source: modbus
uri: {{ joinHostPort .host .port }}
register:
address: 40082 # Batterie-SOC in %
type: holding
decode: uint16
{{- include "battery-params" . }}
{{- end }}