Add my-PV ELWA 2 charger (#14504)

This commit is contained in:
andig 2024-06-29 15:57:12 +02:00 • committed by GitHub
parent ea9334a0af
commit 2a28de5a91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"]
icon: waterheater