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

31_HUEDevice.pm: added lux and lightlevel readings for sensors

git-svn-id: https://svn.fhem.de/fhem/trunk@16340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-03-06 10:07:30 +00:00
parent 2b9ad56211
commit b3cfb5498b

View File

@ -1261,6 +1261,8 @@ HUEDevice_Parse($$)
$readings{daylight} = $state->{daylight}?'1':'0' if( defined($state->{daylight}) );
$readings{temperature} = $state->{temperature} * 0.01 if( defined($state->{temperature}) );
$readings{pressure} = $state->{pressure} if( defined($state->{pressure}) );
$readings{lightlevel} = $state->{lightlevel} if( defined($state->{lightlevel}) );
$readings{lux} = $state->{lux} if( defined($state->{lux}) );
}
if( scalar keys %readings ) {