mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
CUL_HM:update RGBW commands
git-svn-id: https://svn.fhem.de/fhem/trunk@24026 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fd940dc20f
commit
738e0eb77c
@ -5686,6 +5686,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
|||||||
if (defined $duration && $duration !~ m/^[+-]?\d+(\.\d+)?$/);
|
if (defined $duration && $duration !~ m/^[+-]?\d+(\.\d+)?$/);
|
||||||
return "at least bright and colorprogramm need to be set" if (!defined $colProg);
|
return "at least bright and colorprogramm need to be set" if (!defined $colProg);
|
||||||
|
|
||||||
|
$bright = int($bright*2);
|
||||||
my $tval;
|
my $tval;
|
||||||
$tval = (!defined $duration) ? "" : CUL_HM_encodeTime16($duration);# onTime 0.0..85825945.6, 0=forever
|
$tval = (!defined $duration) ? "" : CUL_HM_encodeTime16($duration);# onTime 0.0..85825945.6, 0=forever
|
||||||
$ramp = (!defined $ramp) ? "" : CUL_HM_encodeTime16($ramp) ;
|
$ramp = (!defined $ramp) ? "" : CUL_HM_encodeTime16($ramp) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user