Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add my-PV ELWA 2 charger #14504

Merged
merged 9 commits into from
Jun 29, 2024
59 changes: 59 additions & 0 deletions templates/definition/charger/ac-elwa-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
template: ac-elwa-2
products:
- brand: my-PV
description:
generic: AC ELWA 2
params:
- name: modbus
choice: ["tcpip"]
render: |
type: custom
enable:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 1000
type: writeholding
decode: uint16
enabled:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 1000
type: holding
decode: uint16
maxcurrent:
source: go
script: |
230 * maxcurrent
out:
- name: power
type: int
source: modbus
{{- include "modbus" . | indent 6 }}
register:
address: 1000
type: writeholding
decode: uint16
status:
source: combined
plugged:
source: const
value: 1
charging:
source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 1074 # alternativ 1003 mit bit pattern
type: holding
decode: uint16
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 1001
type: holding
decode: uint16
scale: 0.1
features: ["integrateddevice", "heating"]
andig marked this conversation as resolved.
Show resolved Hide resolved
andig marked this conversation as resolved.
Show resolved Hide resolved
icon: waterheater