mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
31_LightScene.pm: store HUEDevices in colormode hs
git-svn-id: https://svn.fhem.de/fhem/trunk@8337 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3fe477bef2
commit
9a8c5054f8
@ -495,9 +495,12 @@ LightScene_SaveDevice($$)
|
||||
} elsif( $subtype eq "dimmer" ) {
|
||||
$state = "bri ". ReadingsVal($d,'bri',"0");
|
||||
} elsif( $subtype =~ m/color|ct/ ) {
|
||||
if( ReadingsVal($d,"colormode","") eq "ct" ) {
|
||||
my $cm = ReadingsVal($d,"colormode","");
|
||||
if( $cm eq "ct" ) {
|
||||
ReadingsVal($d,"ct","") =~ m/(\d+) .*/;
|
||||
$state = "bri ". ReadingsVal($d,'bri',"0") ." : ct ". $1;
|
||||
} elsif( $cm eq "hs" ) {
|
||||
$state = "bri ". ReadingsVal($d,'bri',"0") ." : hue ". ReadingsVal($d,'hue',"") ." : sat ". ReadingsVal($d,'sat',"");
|
||||
} else {
|
||||
$state = "bri ". ReadingsVal($d,'bri',"0") ." : xy ". ReadingsVal($d,'xy',"");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user