2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +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:
martinp876 2021-03-20 19:16:26 +00:00
parent fd940dc20f
commit 738e0eb77c

View File

@ -5685,7 +5685,8 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
return "please enter the duration in seconds"
if (defined $duration && $duration !~ m/^[+-]?\d+(\.\d+)?$/);
return "at least bright and colorprogramm need to be set" if (!defined $colProg);
$bright = int($bright*2);
my $tval;
$tval = (!defined $duration) ? "" : CUL_HM_encodeTime16($duration);# onTime 0.0..85825945.6, 0=forever
$ramp = (!defined $ramp) ? "" : CUL_HM_encodeTime16($ramp) ;