From e28a64fbeac27a8e7e9a62c99a8b4cf78da0f90d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 27 Jul 2024 17:15:00 +0200 Subject: [PATCH] more metrics please --- sdm630_mqtt.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sdm630_mqtt.py b/sdm630_mqtt.py index 9e2aaa5..293af01 100644 --- a/sdm630_mqtt.py +++ b/sdm630_mqtt.py @@ -9,7 +9,6 @@ from pyModbusTCP.utils import decode_ieee, word_list_to_long logging.basicConfig(level=logging.DEBUG) LOG = logging.getLogger(__name__) - class SDM630_MQTT: def __init__( self, @@ -62,6 +61,14 @@ class SDM630_MQTT: "apparent-power/L2": 0x000E, "apparent-power/L3": 0x0010, "apparent-power/total": 0x0034, + "current-demand/L1": 0x0102, + "current-demand/L2": 0x0104, + "current-demand/L3": 0x0106, + "current-demand/N": 0x0068, + "current-demand/max_L1": 0x0108, + "current-demand/max_L2": 0x010A, + "current-demand/max_L3": 0x010C, + "current-demand/max_N": 0x006A, "current/L1": 0x0006, "current/L2": 0x0008, "current/L3": 0x000A, @@ -77,6 +84,8 @@ class SDM630_MQTT: "phase-angle/L2": 0x0026, "phase-angle/L3": 0x0028, "phase-angle/total": 0x003E, + "power-demand/max": 0x0056, + "power-demand/total": 0x0054, "power-factor/L1": 0x001E, "power-factor/L2": 0x0020, "power-factor/L3": 0x0022,