mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-27 10:37:13 +00:00
13_KS300.pm: slight strangeTemp feature change
git-svn-id: https://svn.fhem.de/fhem/trunk@19949 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
67ce93738d
commit
9eca01784e
@ -214,7 +214,10 @@ KS300_Parse($$)
|
|||||||
my $std = AttrVal($name, "strangeTempDiff", 0);
|
my $std = AttrVal($name, "strangeTempDiff", 0);
|
||||||
if($std) {
|
if($std) {
|
||||||
my $ov = ReadingsVal($name, 'temperature', 0);
|
my $ov = ReadingsVal($name, 'temperature', 0);
|
||||||
return "" if($ov && abs($ov-$v[4]) > $std);
|
if($ov && abs($ov-$v[4]) > $std) {
|
||||||
|
readingsBulkUpdate($def, 'strangeTemp', $v[4], 0);
|
||||||
|
$v[4] = $ov;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Negative temp
|
# Negative temp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user