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.

Light scenes KNX
#4
This example will dim 3 lights from 0% to 100% in 10% steps with 0.2 seconds delay between each step. You can adjust the step/delay as needed and also add new group addresses to the list.
Code:
step = 10
delay = 0.2
addrs = { '32/1/15', '32/1/16', '32/1/17' }

for _, addr in ipairs(addrs) do
  obj = grp.find(addr)
  for value = 0, 100, step do
    obj:write(value)
    os.sleep(delay)
  end
end
Reply


Messages In This Thread
Light scenes KNX - by lf96player - 25.08.2021, 08:28
RE: Light scenes KNX - by Daniel - 25.08.2021, 08:29
RE: Light scenes KNX - by lf96player - 25.08.2021, 08:49
RE: Light scenes KNX - by admin - 25.08.2021, 09:26
RE: Light scenes KNX - by khalil - 25.08.2021, 09:36
RE: Light scenes KNX - by lf96player - 25.08.2021, 22:37
RE: Light scenes KNX - by admin - 25.08.2021, 09:39
RE: Light scenes KNX - by khalil - 25.08.2021, 09:44
RE: Light scenes KNX - by admin - 27.08.2021, 07:37
RE: Light scenes KNX - by victor.back - 12.03.2022, 21:17
RE: Light scenes KNX - by admin - 15.03.2022, 09:09

Forum Jump: