From 2e134ced664ea41dede56c5f1fc8631d3643095d Mon Sep 17 00:00:00 2001 From: tupol Date: Thu, 19 Oct 2017 19:29:29 +0000 Subject: [PATCH] LUXTRONIK2: new reading: 2ndHeatSource1 git-svn-id: https://svn.fhem.de/fhem/trunk@15291 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/23_LUXTRONIK2.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/23_LUXTRONIK2.pm b/fhem/FHEM/23_LUXTRONIK2.pm index 358d1eaa6..d0944d916 100644 --- a/fhem/FHEM/23_LUXTRONIK2.pm +++ b/fhem/FHEM/23_LUXTRONIK2.pm @@ -696,7 +696,9 @@ sub LUXTRONIK2_DoUpdate($) $return_str .= "|". ($heatpump_visibility[267]==1 ? $heatpump_values[163] : "no"); # 74 - solarPump $return_str .= "|". ($heatpump_visibility[63]==1 ? $heatpump_values[52] : "no"); - + # 75 - 2ndHeatSource1 + $return_str .= "|". ($heatpump_visibility[59]==1 ? $heatpump_values[48] : "no"); + return $return_str; } @@ -1095,7 +1097,8 @@ LUXTRONIK2_UpdateDone($) readingsBulkUpdate($hash,"heatingSystemCircPump",$heatingSystemCircPump?"on":"off"); readingsBulkUpdate($hash,"hotWaterCircPumpExtern",$a[28]?"on":"off"); readingsBulkUpdate($hash,"hotWaterSwitchingValve",$hotWaterBoilerValve?"on":"off"); - readingsBulkUpdate($hash,"solarPump",$a[74]?"on":"off"); + if ($a[74] !~ /no/) { readingsBulkUpdate($hash,"solarPump",$a[74]?"on":"off"); } + if ($a[75] !~ /no/) { readingsBulkUpdate($hash,"2ndHeatSource1",$a[75]?"on":"off"); } # Deaerate Function readingsBulkUpdate( $hash, "hotWaterCircPumpDeaerate",$a[61]?"on":"off") unless $a[61] eq "no";