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 whether you accept or reject these cookies being set.

DALI dimming and scale objects
#1
I am dying trying to wrap my head around this. The touch panel MDT Smart 86 has 4 Objects to control dimming. On/off , Dimming, and I think Visu Scale on one button.

This is how it looks in my LM DR
   

this is how I have configured in ETS4 (PB2 is the button)
   

The button Kitchen does dimm and do on/off, but the scale object does not update to the real dimming value neither in the LM nor on the Button Display.

what am I doing wrong?
Reply
#2
LM does not provide status feedback for DALI light levels. You can create a resident script to poll actual values from ballasts. Do you have many of them?
Reply
#3
(05.01.2019, 13:27)admin Wrote: LM does not provide status feedback for DALI light levels. You can create a resident script to poll actual values from ballasts. Do you have many of them?

Hi! I have 8 devices (4 on each Lunatone).
Reply
#4
Use this resident script, 0 sleep time. It will poll each ballast, then sleep for 1 second internally. You need to create status objects manually, this example uses 32/2/0..32/2/7 range. Data type is 1-byte scale, make sure that status objects are not the same as control objects.

Code:
require('user.dali')

for address = 0, 7 do
  res = dalicmd('internal', 'queryactual', { addrtype = 'short', address = address })

  if res then
    value = res:byte()
    value = math.floor(value / 2.54 + 0.5)
    
    grp.checkupdate('32/2/' .. address, value)
  end

  os.sleep(1)
end
Reply
#5
res = dalicmd('internal', 'queryactual', { addrtype = 'short', address = address })

returns Nill for all addresses ... on/off works flawlessly

ohh my mistake, changed it to "internal2". Works!!! thank you
Reply


Forum Jump: