2
0
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:
justme-1968 2018-03-08 07:42:40 +00:00
parent 30598fc654
commit 1aa019f02a

View File

@ -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 ) {