From 86c0202d4b3a318ecf5a5acfdafaec68ca8f1d8c Mon Sep 17 00:00:00 2001 From: Wzut <> Date: Wed, 31 Mar 2021 17:49:19 +0000 Subject: [PATCH] 38_BEOK.pm: change verbose 4 logging for temperatures git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24120 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/38_BEOK.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/FHEM/38_BEOK.pm b/FHEM/38_BEOK.pm index 429dbf91c..776fcb052 100644 --- a/FHEM/38_BEOK.pm +++ b/FHEM/38_BEOK.pm @@ -845,9 +845,10 @@ sub UpdateStatus { $t = ($data[4] >> 6) & 1; $hash->{helper}{temp_manual} = $t*2; readingsBulkUpdate ($hash, 'temp-manual', $t); # 2 = manuelle Temp im Automodus - readingsBulkUpdate ($hash, 'room-temp', sprintf('%.1f', $data[5] / 2)); - readingsBulkUpdate ($hash, 'desired-temp', sprintf('%.1f', $data[6] / 2)); - Log3($name, 4, "$name, temp-manual : $t , room-temp : ".sprintf('%.1f', $data[5] / 2).' desired-temp : '.sprintf('%.1f', $data[6] / 2)); + my $room_temp = sprintf('%.1f', $data[5] / 2); + my $desired_temp = sprintf('%.1f', $data[6] / 2); + readingsBulkUpdate ($hash, 'room-temp', $room_temp); + readingsBulkUpdate ($hash, 'desired-temp', $desired_temp); $val = $data[7] & 15; $hash->{helper}{auto_mode} = $val; @@ -895,8 +896,10 @@ sub UpdateStatus { readingsBulkUpdate ($hash, 'power-on-mem', ($data[16]) ? 'off' : 'on'); readingsBulkUpdate ($hash, 'unknown', $data[17]); # ??? - readingsBulkUpdate ($hash, 'floor-temp', sprintf('%0.1f', $data[18] / 2)); - Log3($name, 4, "$name, floor-temp : ".sprintf('%.1f', $data[18] / 2)); + my $floor_temp = sprintf('%0.1f', $data[18] / 2); + readingsBulkUpdate ($hash, 'floor-temp', $floor_temp); + + Log3($name, 4, "$name, Temperatures -> Room : $room_temp , Floor : $floor_temp , Desired : $desired_temp"); readingsBulkUpdate ($hash, 'time', sprintf('%02d:%02d:%02d', $data[19],$data[20],$data[21])); readingsBulkUpdate ($hash, 'dayofweek', $data[22]);