From 3ae0e837f5f601b162c689155b2a80e9705e08b6 Mon Sep 17 00:00:00 2001 From: Snoopy-HSS Date: Fri, 22 Mar 2024 09:38:31 +0100 Subject: [PATCH] Anpassung, dass Einspeisung negativen Wert ausgibt. modified: src/SMA_HM.cpp --- src/SMA_HM.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMA_HM.cpp b/src/SMA_HM.cpp index 92c138b81..7a3a9fe2e 100644 --- a/src/SMA_HM.cpp +++ b/src/SMA_HM.cpp @@ -135,10 +135,10 @@ uint8_t* SMA_HMClass::decodeGroup(uint8_t* offset, uint16_t grouplen) } if (count == 8) { - _powerMeterPower = Peinspeisung - Pbezug; - _powerMeterL1 = EinspeisungL1 - BezugL1; - _powerMeterL2 = EinspeisungL2 - BezugL2; - _powerMeterL3 = EinspeisungL3 - BezugL3; + _powerMeterPower = Pbezug - Peinspeisung; + _powerMeterL1 = BezugL1 - EinspeisungL1; + _powerMeterL2 = BezugL2 - EinspeisungL2; + _powerMeterL3 = BezugL3 - EinspeisungL3; Soutput(kanal, index, art, tarif, "Leistung", _powerMeterPower, timestamp); Soutput(kanal, index, art, tarif, "Leistung L1", _powerMeterL1, timestamp); Soutput(kanal, index, art, tarif, "Leistung L2", _powerMeterL2, timestamp);