31_HUEDevice.pm: fixed temperature and humidity scale

git-svn-id: https://svn.fhem.de/fhem/trunk@12300 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2016-10-09 09:08:30 +00:00
parent b87178a926
commit 3da10e8d88

View File

@@ -1198,9 +1198,9 @@ HUEDevice_Parse($$)
$readings{state} = $state->{presence}?'motion':'nomotion' if( defined($state->{presence}) );
$readings{dark} = $state->{dark}?'1':'0' if( defined($state->{dark}) );
$readings{humidity} = $state->{humidity} if( defined($state->{humidity}) );
$readings{humidity} = $state->{humidity} * 0.01 if( defined($state->{humidity}) );
$readings{daylight} = $state->{daylight}?'1':'0' if( defined($state->{daylight}) );
$readings{temperature} = $state->{temperature} if( defined($state->{temperature}) );
$readings{temperature} = $state->{temperature} * 0.01 if( defined($state->{temperature}) );
}
if( scalar keys %readings ) {