From 37d116eba08677c30d803a5c0ff7c1a7cc00ac4b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 14 Jun 2009 08:53:16 +0000 Subject: [PATCH] tmpcorr attribute git-svn-id: https://svn.fhem.de/fhem/trunk@393 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 4 +++- fhem/FHEM/11_FHT.pm | 7 +++++-- fhem/HISTORY | 6 +++++- fhem/docs/commandref.html | 10 +++++++--- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 199962555..fa1d6e0d3 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -501,5 +501,7 @@ - bugfix: sunrise stuff fixed, doc missing - feature: CUL FHT sending added - bugfix: workaround to make M232 counter wraparound + - feature: sequence module added - feature: Google Weather API support form FHEM (Boris 2009-06-01) - - feature: lazy attribute for FHT devices (Boris 2009-06-09) \ No newline at end of file + - feature: lazy attribute for FHT devices (Boris 2009-06-09) + - feature: tmpcorr attribute for FHT devices diff --git a/fhem/FHEM/11_FHT.pm b/fhem/FHEM/11_FHT.pm index 31ac31696..f67bc0929 100755 --- a/fhem/FHEM/11_FHT.pm +++ b/fhem/FHEM/11_FHT.pm @@ -144,7 +144,8 @@ FHT_Initialize($) $hash->{UndefFn} = "FHT_Undef"; $hash->{ParseFn} = "FHT_Parse"; $hash->{AttrList} = "IODev do_not_notify:0,1 model;fht80b dummy:0,1 " . - "showtime:0,1 loglevel:0,1,2,3,4,5,6 retrycount minfhtbuffer lazy"; + "showtime:0,1 loglevel:0,1,2,3,4,5,6 retrycount minfhtbuffer". + "lazy tmpcorr"; } @@ -418,9 +419,11 @@ FHT_Parse($$) if(defined($def->{READINGS}{"measured-low"}{VAL})) { + my $off = ($attr{$name} && $attr{$name}{tmpcorr}) ? + $attr{$name}{tmpcorr} : 0; $val = $val*256 + $def->{READINGS}{"measured-low"}{VAL}; $val /= 10; - $val = sprintf("%.1f (Celsius)", $val); + $val = sprintf("%.1f (Celsius)", $val+$off); $cmd = "measured-temp" } else { diff --git a/fhem/HISTORY b/fhem/HISTORY index ae8b3e2f0..24281040e 100644 --- a/fhem/HISTORY +++ b/fhem/HISTORY @@ -373,6 +373,7 @@ - Fri Jan 9 - Added a unified dispatch for CUL/FHZ and CM11, since all of them used the same code. + - Addedd IODev attribute to FS20/FHT/HMS/KS300/CUL_WS/CUL/EMWZ/EMGZ/EMEM - Sun Jan 11 (Klaus) - Added fixedrange option day|week|month|year (for pgm2) @@ -409,4 +410,7 @@ updated. - Tue Jun 09 2009 (Boris) - - 11_FHT.pm: lazy attribute for FHT devices \ No newline at end of file + - 11_FHT.pm: lazy attribute for FHT devices + +- Sun Jun 14 2009 (Rudi + - 11_FHT.pm: tmpcorr attribute for FHT devices diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 5e0c3923f..30df39a93 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -1429,7 +1429,6 @@ A line ending with \ will be concatenated with the next one, so long lines
  • retrycount
    - Can be applied to FHT devices.
    If the fhtsoftbuffer attribute is set, then resend commands retrycount times if after 240 seconds no confirmation message is received from the corresponding FHT @@ -1438,7 +1437,6 @@ A line ending with \ will be concatenated with the next one, so long lines
  • minfhtbuffer
    - Can be applied to FHT devices.
    FHEM won't send commands to the FHZ if its fhtbuffer is below this value, default is 0. If this value is low, then the ordering of fht commands (see the note in the FHT section of set) @@ -1449,11 +1447,17 @@ A line ending with \ will be concatenated with the next one, so long lines
  • lazy
    - Can be applied to FHT devices.
    If the lazy attribute is set, FHEM won't send commands to the FHT if the current reading and the value to be set are already identical. This may help avoiding conflicts with the max-1%-time-on-air rule in large installations. Not set per default. +

  • + + +
  • tmpcorr
    + Correct the temperature reported by the FHT by the value specified. + Note: only the measured-temp value reported by fhem (used for logging) + will be modified.