From 1aa019f02a63f5fe769383b9eff47f6558271b57 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Thu, 8 Mar 2018 07:42:40 +0000 Subject: [PATCH] 31_HUEDevice.pm: added power and consumption readings git-svn-id: https://svn.fhem.de/fhem/trunk@16352 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 02f4feff2..daecc0617 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -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 ) {