Add my-PV ELWA 2 charger (#14504)
This commit is contained in:
parent
ea9334a0af
commit
2a28de5a91
1 changed files with 59 additions and 0 deletions
59
templates/definition/charger/ac-elwa-2.yaml
Normal file
59
templates/definition/charger/ac-elwa-2.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue