evcc-io/templates/definition/meter/e3dc.yaml
Andreas Linde cfb174f9f5
Some checks failed
Default / Build (push) Failing after 2m0s
Default / Build UI (push) Failing after 13s
Release / Publish Docker :release (push) Has been cancelled
Release / call-build-workflow (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
More template stuff (#2164)
- Configure now asks for the users knowledge level, so advanced mode can be reached without calling with `--advanced`
- Add template for solaredge inverter
- Add beta template for sungrow inverter
- Add template for MQTT based meter
- Add more template documentation
- Add check and error message for invalid config properties when using templates
- Option to specify language specific template descriptions
- Option to make params dependent on values of other params 
- Option to add sponsortoken in advanced mode
- Option to set minCurrent in advanced mode
- Remove sponsorship requirement from Daheimladen wallbox
- Multiple fixes (FritzDect meter, Kostsal Piko meter, ...)
2022-01-09 12:59:54 +01:00

38 lines
940 B
YAML

template: e3dc
description:
generic: E3DC
guidedsetup:
enable: true
params:
- name: usage
choice: [ "grid", "pv", "battery" ]
- name: host
example: 192.0.2.2
required: true
- name: port
default: 502
render: |
type: custom
power:
source: modbus
uri: {{ .host }}:{{ .port }}
register: # manual register configuration for E3/DC "Simple-Mode"
type: holding
decode: int32s
{{- if eq .usage "grid" }}
address: 40073 # Hausverbrauchs-Leistung in Watt
{{- end}}
{{- if eq .usage "pv" }}
address: 40067 # Photovoltaikleistung in Watt
{{- end}}
{{- if eq .usage "battery" }}
address: 40069 # Batterie-Leistung in Watt
scale: -1 # reverse direction
soc:
source: modbus
uri: {{ .host }}:{{ .port }}
register: # manual register configuration for E3/DC "Simple-Mode"
address: 40082 # Batterie-SOC in Prozent
type: holding
decode: uint16
{{- end}}