mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
synologytemperature bug fix
git-svn-id: https://svn.fhem.de/fhem/trunk@5427 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2d719f555d
commit
708f9fb07a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user