From ee0338de7bff296f130673b5459abfe1e1b6ab0e Mon Sep 17 00:00:00 2001 From: MadMax <> Date: Sat, 17 Aug 2024 10:10:54 +0000 Subject: [PATCH] 76_SMAInverter.pm:fix IDC2 bug 3MPP git-svn-id: https://svn.fhem.de/fhem/trunk@29075 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/76_SMAInverter.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/76_SMAInverter.pm b/fhem/FHEM/76_SMAInverter.pm index 470fb9478..9cd529b9b 100644 --- a/fhem/FHEM/76_SMAInverter.pm +++ b/fhem/FHEM/76_SMAInverter.pm @@ -32,6 +32,7 @@ eval "use FHEM::Meta;1" or my $modMetaAbsent = 1; # Versions History by DS_Starter our %SMAInverter_vNotesIntern = ( + "2.25.3" => "16.08.2024 fix IDC2 bug 3MPP", "2.25.2" => "16.08.2024 fix IDC3 bug", "2.25.1" => "21.04.2024 read Bat_Status", "2.25.0" => "23.03.2024 PW Lengs set so max 18", @@ -2315,7 +2316,7 @@ sub SMAInverter_SMAcommand($$$$$) { $inv_SPOT_UDC2 = unpack("l*", substr $data, 90, 4); $inv_SPOT_UDC3 = unpack("l*", substr $data, 118, 4); $inv_SPOT_IDC1 = unpack("l*", substr $data, 146, 4); - $inv_SPOT_IDC2 = unpack("l*", substr $data, 170, 4); + $inv_SPOT_IDC2 = unpack("l*", substr $data, 174, 4); $inv_SPOT_IDC3 = unpack("l*", substr $data, 202, 4); } if(($inv_SPOT_UDC1 eq -2147483648) || ($inv_SPOT_UDC1 eq 0xFFFFFFFF)) {$inv_SPOT_UDC1 = 0; } elsif($inv_SPOT_UDC1 ne "-") {$inv_SPOT_UDC1 = $inv_SPOT_UDC1 / 100; } # Catch 0x80000000 and 0xFFFFFFFF as 0 value @@ -3591,7 +3592,7 @@ Die Abfrage des Wechselrichters wird non-blocking ausgeführt. Der Timeoutwert f "PV", "inverter" ], - "version": "v2.25.2", + "version": "v2.25.3", "release_status": "stable", "author": [ "Maximilian Paries",