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

OWTEMP: bugfixing

git-svn-id: https://svn.fhem.de/fhem/trunk@513 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
m_fischer 2009-12-15 14:25:17 +00:00
parent 4baa19f9e7
commit b8fe679262

View File

@ -154,20 +154,23 @@ OWTEMP_GetUpdate($$)
$warn = "templow";
$hash->{ALARM} = "1";
$ret = OWTEMP_UpdateReading($hash,"warnings",$now,"",$warn);
$alarm = " A: ".$hash->{ALARM};
$alarm = "A: ".$hash->{ALARM};
} elsif ($temp >= $hash->{READINGS}{temphigh}{VAL}) {
$warn = "temphigh";
$hash->{ALARM} = "1";
$ret = OWTEMP_UpdateReading($hash,"warnings",$now,"",$warn);
$alarm = " A: ".$hash->{ALARM};
$alarm = "A: ".$hash->{ALARM};
} else {
$ret = OWTEMP_UpdateReading($hash,"warnings",$now,"",$warn);
$alarm = " A: ".$hash->{ALARM};
$alarm = "A: ".$hash->{ALARM};
}
$hash->{CHANGED}[$count] = "warnings: $warn";
$hash->{CHANGED}[$count+1] = "T: " . $temp . $alarm;
$hash->{STATE} = "T: " . $hash->{READINGS}{temperature}{VAL} . $alarm;
$hash->{STATE} = "T: " . $temp . " " .
"L: " . $hash->{READINGS}{templow}{VAL} . " " .
"H: " . $hash->{READINGS}{temphigh}{VAL} . " " .
$alarm;
} else {
$value = OW::get("/uncached/$path/".$a);
foreach my $r (sort keys %gets) {