From 2a28de5a91b2806f48eb936cd2ed9f7d27ecda10 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 29 Jun 2024 15:57:12 +0200 Subject: [PATCH] Add my-PV ELWA 2 charger (#14504) --- templates/definition/charger/ac-elwa-2.yaml | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 templates/definition/charger/ac-elwa-2.yaml diff --git a/templates/definition/charger/ac-elwa-2.yaml b/templates/definition/charger/ac-elwa-2.yaml new file mode 100644 index 000000000..cc783a5f6 --- /dev/null +++ b/templates/definition/charger/ac-elwa-2.yaml @@ -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