mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
31_HUEDevice.pm: don't use state for lightlevel if lux and lightlevel are both available
git-svn-id: https://svn.fhem.de/fhem/trunk@16341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b3cfb5498b
commit
5fb229a3d3
@ -1252,7 +1252,7 @@ HUEDevice_Parse($$)
|
||||
$readings{state} = $state->{status} if( defined($state->{status}) );
|
||||
$readings{state} = $state->{flag}?'1':'0' if( defined($state->{flag}) );
|
||||
$readings{state} = $state->{open}?'open':'closed' if( defined($state->{open}) );
|
||||
$readings{state} = $state->{lightlevel} if( defined($state->{lightlevel}) );
|
||||
$readings{state} = $state->{lightlevel} if( defined($state->{lightlevel}) && !defined($state->{lux}) );
|
||||
$readings{state} = $state->{buttonevent} if( defined($state->{buttonevent}) );
|
||||
$readings{state} = $state->{presence}?'motion':'nomotion' if( defined($state->{presence}) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user