2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 00:26:03 +00:00

allow humidity 99

git-svn-id: https://svn.fhem.de/fhem/trunk@4213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-11-13 15:29:18 +00:00
parent 2d4c6fd096
commit bf5b2a19af

View File

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