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 dimming and scale objects
#6
(05.01.2019, 18:02)admin Wrote: 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

Hello Admin 
What method could one use for more devices like 40?
Tag on the control objects could help?
Best Regards,
Reply


Messages In This Thread
RE: DALI dimming and scale objects - by admin - 05.01.2019, 13:27
RE: DALI dimming and scale objects - by admin - 05.01.2019, 18:02
RE: DALI dimming and scale objects - by khalil - 24.04.2022, 13:57
RE: DALI dimming and scale objects - by admin - 25.04.2022, 06:18
RE: DALI dimming and scale objects - by admin - 25.04.2022, 08:52
RE: DALI dimming and scale objects - by admin - 25.04.2022, 08:58
RE: DALI dimming and scale objects - by admin - 25.04.2022, 09:20
RE: DALI dimming and scale objects - by admin - 19.09.2024, 09:11

Forum Jump: