mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
2b9ad56211
commit
b3cfb5498b
@ -1261,6 +1261,8 @@ HUEDevice_Parse($$)
|
|||||||
$readings{daylight} = $state->{daylight}?'1':'0' if( defined($state->{daylight}) );
|
$readings{daylight} = $state->{daylight}?'1':'0' if( defined($state->{daylight}) );
|
||||||
$readings{temperature} = $state->{temperature} * 0.01 if( defined($state->{temperature}) );
|
$readings{temperature} = $state->{temperature} * 0.01 if( defined($state->{temperature}) );
|
||||||
$readings{pressure} = $state->{pressure} if( defined($state->{pressure}) );
|
$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 ) {
|
if( scalar keys %readings ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user