handle hue devices in ct colormode

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2945 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2013-03-17 21:40:14 +00:00
parent 152afe89ce
commit fd380831e7

View File

@@ -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","");