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.

Send LM object value to the KNX bus every hour
#1
Hi.

I have 18 temperature object values in LM that i want to send to the KNX bus every hour (to update touchpanels). What's the best way to do this ? Do i have to set up a resident script with 60 min sleep? In that case, does anyone know how this code should be written?

BR
Kai-Roger
Reply
#2
You should use a scheduled script for such large intervals. You can tag all objects that needs re-send action and use this script:

Code:
objects = grp.tag('resend')
for _, object in ipairs(objects) do
  grp.write(object.address, object.value)
  sleep(0.1)
end
Reply
#3
(30.01.2019, 12:00)admin Wrote: You should use a scheduled script for such large intervals. You can tag all objects that needs re-send action and use this script:

Code:
objects = grp.tag('resend')
for _, object in ipairs(objects) do
 grp.write(object.address, object.value)
 sleep(0.1)
end

Thanks (:
Reply


Forum Jump: