From bceed3b2a9a0ac15fec03a62c971c3058d9caac3 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 26 Oct 2023 20:05:00 +0200 Subject: [PATCH] Add ads-tec StoraXe (#9411) --- templates/definition/meter/storaxe.yaml | 50 +++++++++++++++++++++++++ templates/docs/meter/storaxe_0.yaml | 15 ++++++++ templates/evcc.io/brands.json | 1 + 3 files changed, 66 insertions(+) create mode 100644 templates/definition/meter/storaxe.yaml create mode 100644 templates/docs/meter/storaxe_0.yaml diff --git a/templates/definition/meter/storaxe.yaml b/templates/definition/meter/storaxe.yaml new file mode 100644 index 000000000..a86703d76 --- /dev/null +++ b/templates/definition/meter/storaxe.yaml @@ -0,0 +1,50 @@ +template: storaxe +products: + - brand: Ads-tec + description: + generic: StoraXe +params: + - name: usage + choice: ["battery"] + - name: modbus + choice: ["tcpip"] + id: 2 +render: | + type: custom + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 2 # RealPower + type: holding + decode: int16 + scale: 100 + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 115 # EnergyExportedAC + type: holding + decode: uint32 + currents: + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 10 # ACCurrentL1 + type: holding + decode: int16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 11 # ACCurrentL2 + type: holding + decode: int16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 12 # ACCurrentL3 + type: holding + decode: int16 + scale: 0.1 diff --git a/templates/docs/meter/storaxe_0.yaml b/templates/docs/meter/storaxe_0.yaml new file mode 100644 index 000000000..5749d570b --- /dev/null +++ b/templates/docs/meter/storaxe_0.yaml @@ -0,0 +1,15 @@ +product: + brand: Ads-tec + description: StoraXe +render: + - usage: battery + default: | + type: template + template: storaxe + usage: battery + + # Modbus TCP + modbus: tcpip + id: 2 + host: 192.0.2.2 # Hostname + port: 502 # Port diff --git a/templates/evcc.io/brands.json b/templates/evcc.io/brands.json index b11291f50..1f8bfbb23 100644 --- a/templates/evcc.io/brands.json +++ b/templates/evcc.io/brands.json @@ -147,6 +147,7 @@ ], "PVBattery": [ "Acrel", + "Ads-tec", "Alpha ESS", "AVM", "Bosswerk",