From 7909f9375c5130a1992b24c0cdea20f7df4493ee Mon Sep 17 00:00:00 2001 From: baloo-gh <45927782+baloo-gh@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:34:02 +0200 Subject: [PATCH] Solarmax Maxstorage: add pv energy (#24444) --- templates/definition/meter/solarmax-maxstorage.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/definition/meter/solarmax-maxstorage.yaml b/templates/definition/meter/solarmax-maxstorage.yaml index d9858b65d..2800252ee 100644 --- a/templates/definition/meter/solarmax-maxstorage.yaml +++ b/templates/definition/meter/solarmax-maxstorage.yaml @@ -25,8 +25,8 @@ params: advanced: true render: | type: custom - power: {{- if eq .usage "grid" }} + power: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration @@ -36,15 +36,24 @@ render: | scale: -1 {{- end }} {{- if eq .usage "pv" }} + power: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration address: 110 # PV-Leistung MAX.STORAGE type: input decode: int32s + energy: + source: modbus + {{- include "modbus" . | indent 2 }} + register: # manual non-sunspec register configuration + address: 150 # Produzierte PV-Energie + type: input + decode: int32s maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} + power: source: modbus {{- include "modbus" . | indent 2 }} register: # manual non-sunspec register configuration