This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DALI DT-6
#3
(20.02.2019, 07:39)admin Wrote: Why not use a formula to calculate warm/cold white values based on color temp instead of copy-pasting hundreds lines of code? Smile

For control you probably need just two objects: dimming and color temperature. If binary control is also needed you just create a script that sets dimming and color temperature to preset values.

Yes,
The script with formula : 

valtemp = grp.getvalue('34/1/7')

val1= (valtemp - 2700)/19
val2= (6500 - valtemp)/19

if valtemp <=4600 then
  grp.write('34/1/3', 100)
  grp.write('34/1/4', val1)
elseif valtemp >4600 then
  grp.write('34/1/3', val2)
  grp.write('34/1/4', 100)
end

Just for my table excel if you put values such as 10% cold and 10% hot there will be no match.

B.R.
Reply


Messages In This Thread
DALI DT-6 - by Gadjoken - 19.02.2019, 14:47
RE: DALI DT-6 - by admin - 20.02.2019, 07:39
RE: DALI DT-6 - by Gadjoken - 20.02.2019, 09:41

Forum Jump: