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
#11
Try this:
Code:
step = 10
delay = 0.2

addrs = { '20/3/0', '20/3/1', '20/3/2', '20/3/3' }

for i = 1, #addrs + 1 do
  curr = addrs[ i ]
  prev = addrs[ i - 1 ]

  for value = 0, 100, step do
    if curr then
      grp.write(curr, value, dt.scale)
    end

    if prev then
      grp.write(prev, 100 - value, dt.scale)
    end

    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: