1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

31_LightScene.pm: handle hue subTypes extcolordimmer and ctcolordimmer

git-svn-id: https://svn.fhem.de/fhem/trunk@7289 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-12-21 17:28:44 +00:00
parent ffb8eddd1d
commit 5d599d4833

View File

@ -487,7 +487,7 @@ LightScene_SaveDevice($$)
$state = Value($d);
} elsif( $subtype eq "dimmer" ) {
$state = "bri ". ReadingsVal($d,'bri',"0");
} elsif( $subtype eq "colordimmer" ) {
} elsif( $subtype =~ m/color|ct/ ) {
if( ReadingsVal($d,"colormode","") eq "ct" ) {
ReadingsVal($d,"ct","") =~ m/(\d+) .*/;
$state = "bri ". ReadingsVal($d,'bri',"0") ." : ct ". $1;