From 57daa1aa508018583af3a7c65d6d45b2ba8eb8d4 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Sun, 17 Mar 2013 21:40:14 +0000 Subject: [PATCH] handle hue devices in ct colormode git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2945 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/31_LightScene.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FHEM/31_LightScene.pm b/FHEM/31_LightScene.pm index 8db8e4fea..38babb5e5 100644 --- a/FHEM/31_LightScene.pm +++ b/FHEM/31_LightScene.pm @@ -206,7 +206,12 @@ LightScene_Set($@) } elsif( $subtype eq "dimmer" ) { $status = "bri ". ReadingsVal($d,'bri',"0"); } elsif( $subtype eq "colordimmer" ) { - $status = "bri ". ReadingsVal($d,'bri',"0") ." : xy ". ReadingsVal($d,'xy',""); + if( ReadingsVal($d,"colormode","") eq "ct" ) { + ReadingsVal($d,"ct","") =~ m/(\d+) .*/; + $status = "bri ". ReadingsVal($d,'bri',"0") ." : ct ". $1; + } else { + $status = "bri ". ReadingsVal($d,'bri',"0") ." : xy ". ReadingsVal($d,'xy',""); + } } } elsif( $defs{$d}{TYPE} eq 'IT' ) { my $subtype = AttrVal($d,"model","");