fix of fix for CHANGED reading handling in 59_Weather.pm
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -60,9 +60,9 @@ sub Weather_UpdateReading($$$$$$) {
|
||||
$r->{$reading}{VAL} = $value;
|
||||
|
||||
my $name= $hash->{NAME};
|
||||
Log 1, "Weather $name: $reading= $value";
|
||||
# Log 1, "Weather $name: $reading= $value";
|
||||
|
||||
$hash->{CHANGED}[$n]= "$key: $value";
|
||||
$hash->{CHANGED}[$n]= "$reading: $value";
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -125,6 +125,11 @@ sub Weather_GetUpdate($)
|
||||
}
|
||||
}
|
||||
|
||||
if(!$hash->{LOCAL}) {
|
||||
DoTrigger($name, undef) if($init_done);
|
||||
}
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user