mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 17:36:39 +00:00
handle hue devices in ct colormode
git-svn-id: https://svn.fhem.de/fhem/trunk@2945 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7568f2a5f2
commit
54d9ca527a
@ -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","");
|
||||
|
Loading…
x
Reference in New Issue
Block a user