mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
Color.pm: use reading as default value and command only as fallback, forum: http://forum.fhem.de/index.php/topic,29378.msg221513.html#new
git-svn-id: https://svn.fhem.de/fhem/trunk@7026 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
544bc4f4e1
commit
1286f3041b
@ -32,7 +32,8 @@ FHEM_colorpickerFn($$$)
|
||||
my ($mode) = ($1);
|
||||
$mode = "RGB" if( !defined($mode) );
|
||||
my $srf = $FW_room ? "&room=$FW_room" : "";
|
||||
my $cv = CommandGet("","$d $cmd");
|
||||
my $cv = ReadingsVal($d,$cmd,"");
|
||||
$cv = CommandGet("","$d $cmd") if( !$cv );
|
||||
$cmd = "" if($cmd eq "state");
|
||||
if( $args[1] ) {
|
||||
my $c = "cmd=set $d $cmd$srf";
|
||||
|
Loading…
Reference in New Issue
Block a user