allow humidity 99

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2013-11-13 15:29:18 +00:00
parent 9b2fabd6a2
commit c6518f1fa0

View File

@@ -154,10 +154,10 @@ LaCrosse_Parse($$)
&& abs($rhash->{"previousT$channel"} - $temperature) <= AttrVal( $rname, "filterThreshold", 10 ) ) {
readingsBeginUpdate($rhash);
readingsBulkUpdate($rhash, "temperature$channel", $temperature);
readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity != 99 );
readingsBulkUpdate($rhash, "humidity$channel", $humidity) if( $humidity && $humidity <= 99 );
if( !$channel ) {
my $state = "T: $temperature";
$state .= " H: $humidity" if( $humidity && $humidity != 99 );
$state .= " H: $humidity" if( $humidity && $humidity <= 99 );
readingsBulkUpdate($rhash, "state", $state) if( Value($rname) ne $state );
}
readingsBulkUpdate($rhash, "battery$channel", $battery_low?"low":"ok");