From b4a175cefda84680d73ae480951fdb2c9a3187e1 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:04:14 +0100 Subject: [PATCH] Storaxe: add soc and voltages, fix type (#10556) --- templates/definition/meter/storaxe.yaml | 39 +++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/templates/definition/meter/storaxe.yaml b/templates/definition/meter/storaxe.yaml index a86703d76..949f01176 100644 --- a/templates/definition/meter/storaxe.yaml +++ b/templates/definition/meter/storaxe.yaml @@ -16,7 +16,7 @@ render: | {{- include "modbus" . | indent 2 }} register: address: 2 # RealPower - type: holding + type: input decode: int16 scale: 100 energy: @@ -24,27 +24,56 @@ render: | {{- include "modbus" . | indent 2 }} register: address: 115 # EnergyExportedAC - type: holding + type: input decode: uint32 + voltages: + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 7 # ACVoltageL1 + type: input + decode: int16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 8 # ACVoltageL2 + type: input + decode: int16 + scale: 0.1 + - source: modbus + {{- include "modbus" . | indent 4 }} + register: + address: 9 # ACVoltageL3 + type: input + decode: int16 + scale: 0.1 currents: - source: modbus {{- include "modbus" . | indent 4 }} register: address: 10 # ACCurrentL1 - type: holding + type: input decode: int16 scale: 0.1 - source: modbus {{- include "modbus" . | indent 4 }} register: address: 11 # ACCurrentL2 - type: holding + type: input decode: int16 scale: 0.1 - source: modbus {{- include "modbus" . | indent 4 }} register: address: 12 # ACCurrentL3 - type: holding + type: input decode: int16 scale: 0.1 + soc: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 126 # SXSSOC + type: input + decode: int16