Skip to content

Commit

Permalink
Anpassung, dass Einspeisung negativen Wert ausgibt.
Browse files Browse the repository at this point in the history
	modified:   src/SMA_HM.cpp
  • Loading branch information
Snoopy-HSS committed Mar 22, 2024
1 parent b449dd1 commit 3ae0e83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SMA_HM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ae0e83

Please sign in to comment.