mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
31_HUEDevice.pm: added power and consumption readings
git-svn-id: https://svn.fhem.de/fhem/trunk@16352 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
30598fc654
commit
1aa019f02a
@ -1263,6 +1263,10 @@ HUEDevice_Parse($$)
|
||||
$readings{pressure} = $state->{pressure} if( defined($state->{pressure}) );
|
||||
$readings{lightlevel} = $state->{lightlevel} if( defined($state->{lightlevel}) );
|
||||
$readings{lux} = $state->{lux} if( defined($state->{lux}) );
|
||||
$readings{power} = $state->{power} if( defined($state->{power}) );
|
||||
$readings{voltage} = $state->{voltage} if( defined($state->{voltage}) );
|
||||
$readings{current} = $state->{current} if( defined($state->{current}) );
|
||||
$readings{consumption} = $state->{consumption} if( defined($state->{consumption}) );
|
||||
}
|
||||
|
||||
if( scalar keys %readings ) {
|
||||
|
Loading…
Reference in New Issue
Block a user