Skip to content

Commit

Permalink
14_SD_WS07.pm (#543)
Browse files Browse the repository at this point in the history
* 14_SD_WS07.pm
if humidity or temperature value is out of range, then do not log at verbose 3. Log only at verbose 4
  • Loading branch information
sidey79 authored Mar 9, 2019
1 parent 4c7bf33 commit 34658f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGED
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
09.03.2019
14_SD_WS07.pm: loglevel 4 for values out of range, hint added to commandref
06.03.2019
14_SD_WS.pm: New protocol for refrigerator thermometer NC-3911, NC-3912 (Rosenstein & Soehne, PEARL)
05.03.2019
Expand Down
9 changes: 6 additions & 3 deletions FHEM/14_SD_WS07.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ SD_WS07_Parse($$)

$hum += AttrVal($name, "offset-hum", 0); # correction value for humidity (default 0 %)
if ($model ne "SD_WS07_T" && $hum > 100 || $model ne "SD_WS07_T" && $hum < 0) {
Log3 $name, 3, "$iohash->{NAME}: $name ERROR - Humidity unknown ($hum)";
Log3 $name, 4, "$iohash->{NAME}: $name ERROR - Humidity out of range 0-100: ($hum)";
return "";
}

if ($temp > 700 && $temp < 3840) { # -25,6 .. 70,0 °C
Log3 $name, 3, "$iohash->{NAME}: $name ERROR - Temperature unknown ($temp)";
Log3 $name, 4, "$iohash->{NAME}: $name ERROR - Temperature out of range 700-3840 ($temp)";
return "";
} elsif ($temp >= 3840) { # negative Temperaturen, ist ueberprueft worden
$temp -= 4096;
Expand Down Expand Up @@ -312,6 +312,8 @@ sub SD_WS07_Attr(@)
<br>
New received devices are added in FHEM with autocreate.
<br><br>
The module writes from verbose 4 messages, if not possible values like humidity > 100% are decoded.
<br><br>
<a name="SD_WS07_Define"></a>
<b>Define</b>
Expand Down Expand Up @@ -393,7 +395,8 @@ sub SD_WS07_Attr(@)
<br>
Neu empfangene Sensoren werden in FHEM per autocreate angelegt.
<br><br>
Das Modul schreibt in das Logfile ab verbose 4 Meldungen, wenn die dekodierten Werte nicht plausibel sind. Z.B. Feuchtewerte über 100%.
<br><br>
<a name="SD_WS07_Define"></a>
<b>Define</b>
<ul>Die empfangenen Sensoren werden automatisch angelegt.<br>
Expand Down
2 changes: 1 addition & 1 deletion controls_signalduino.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ UPD 2018-12-30_01:23:15 20708 FHEM/14_SD_BELL.pm
UPD 2019-03-04_19:25:09 64116 FHEM/14_SD_Keeloq.pm
UPD 2019-02-25_23:03:57 12469 FHEM/14_SD_RSL.pm
UPD 2019-02-27_22:04:38 96403 FHEM/14_SD_UT.pm
UPD 2019-03-06_20:22:00 17991 FHEM/14_SD_WS07.pm
UPD 2019-03-09_20:54:28 18278 FHEM/14_SD_WS07.pm
UPD 2018-10-09_22:31:43 37483 FHEM/14_SD_WS09.pm
UPD 2019-02-12_21:37:35 14297 FHEM/14_SD_WS_Maverick.pm
UPD 2019-03-08_17:40:58 52648 FHEM/14_SD_WS.pm
Expand Down

0 comments on commit 34658f7

Please sign in to comment.