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
#16
Try this, it takes 2 seconds for each group so run it accordingly based on the amount. 
Code:
addrs = {
  ['1/1/2'] = '32/1/1',
  ['1/1/4'] = '32/1/2',
  ['1/1/6'] = '32/1/3',
}

for ia, ga in pairs(addrs) do
grp.read(ia)
os.sleep(2)

-- get time difference between now and last telegram
obj = grp.find(ia)
delta = os.time() - obj.updatetime
 
if delta < 10 then
  grp.checkupdate(ga, true)
else
   grp.checkupdate(ga, false)
end
end
------------------------------
Ctrl+F5
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 os.sleep - 13.11.2025, 05:56
RE: KNX physical address check - by Bergman - 06.11.2025, 18:48
RE: KNX physical address check - by Daniel - 13.11.2025, 08:49
RE: KNX physical address check - by os.sleep - 13.11.2025, 14:29

Forum Jump: