synologytemperature bug fix

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5427 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-04-04 06:56:59 +00:00
parent 483c8ac2a3
commit 27231a005a

View File

@@ -342,7 +342,7 @@ SYSSTAT_GetUpdate($)
} elsif( AttrVal($name, "synologytemperature", 0) > 0 ) {
my $temp = SYSSTAT_getSynoTemp($hash);
if( $temp > 0 && $temp < 200 ) {
if( AttrVal($name, "raspberrytemperature", 0) eq 2 ) {
if( AttrVal($name, "synologytemperature", 0) eq 2 ) {
$temp = sprintf( "%.1f", (3 * ReadingsVal($name,"temperature",$temp) + $temp ) / 4 );
}
readingsBulkUpdate($hash,"temperature",$temp);