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.

KNX physical address check
#13
Create a single scheduled script and modify addrs table as needed. Left side (key) is individual address, right side (value) is status group address.
Code:
addrs = {
  ['1.1.1'] = '32/1/1',
  ['1.1.2'] = '32/1/2',
  ['1.1.3'] = '32/1/3',
}

for ia, ga in pairs(addrs) do
  res = buslib.ping(ia)
  grp.checkupdate(ga, not res)
  os.sleep(1)
end

Run the script as often as you need to check the devices.

There's no difference between os.sleep and sleep, it's the same function.
Reply


Messages In This Thread
KNX physical address check - by Peter - 13.10.2015, 11:33
RE: KNX physical address check - by admin - 13.10.2015, 11:53
RE: KNX physical address check - by Peter - 13.10.2015, 12:10
RE: KNX physical address check - by Peter - 15.10.2015, 06:07
RE: KNX physical address check - by gtsamis - 21.01.2016, 23:30
RE: KNX physical address check - by Ruslan - 28.02.2016, 12:45
RE: KNX physical address check - by rocfusion - 28.02.2016, 20:47
RE: KNX physical address check - by Ruslan - 29.02.2016, 05:44
RE: KNX physical address check - by rocfusion - 29.02.2016, 05:54
RE: KNX physical address check - by admin - 02.03.2016, 08:46
RE: KNX physical address check - by Bergman - 04.11.2025, 20:30
RE: KNX physical address check - by admin - 05.11.2025, 08:06
RE: KNX physical address check - by Bergman - 06.11.2025, 18:48

Forum Jump: