mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +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:
parent
2d4c6fd096
commit
bf5b2a19af
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user