From 229a76a48f7f26e0699842997c9f09e953284b55 Mon Sep 17 00:00:00 2001 From: heikoranft <> Date: Sun, 22 Feb 2015 16:00:08 +0000 Subject: [PATCH] 89_HEATRONIC.pm: calculation of sol_Tcollector changed git-svn-id: https://svn.fhem.de/fhem/trunk@8068 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/89_HEATRONIC.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/89_HEATRONIC.pm b/fhem/FHEM/89_HEATRONIC.pm index 3a060b901..75db4618e 100644 --- a/fhem/FHEM/89_HEATRONIC.pm +++ b/fhem/FHEM/89_HEATRONIC.pm @@ -754,17 +754,17 @@ HEATRONIC_DecodeMsg_SOL($$$) my $sol_Tcylinder_bottom = 0; if (hex(substr($string,5*2,2)) == 3) { - if (hex(substr($string,10*2,2)) != 255) + my $sol_Tcollector = hex(substr($string,10*2,2)); + if ($sol_Tcollector != 255) { - $sol_Tcollector = hex(substr($string,10*2,4))/10; - $sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10; + $sol_Tcollector = ($sol_Tcollector * 256 + hex(substr($string,11*2,2)))/10; } else { $sol_Tcollector = hex(255-substr($string,11*2,2))/-10; - $sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10; } - + $sol_Tcylinder_bottom = hex(substr($string,12*2,4))/10; + my $sol_pump = (hex(substr($string,14*2,2)) & 0x01) ? 1 : 0; my $sol_yield_last_hour = hex(substr($string,8*2,4)); my $sol_yield_2 = hex(substr($string,6*2,4));