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.

Get an object to respond to read request on the knx bus.
#1
Hi,

This is a very simple script,  add this to an object as a event script.  In scripting, event based, make sure the script executes on group read.  The data type of the object should match the last parameter in the grp.response line.  When you take this example below,  when the group address 12/0/1 is read on the KNX bus the Logic Machine (LM) will respond to the read telegram with a response telegram containing the current value of the object stored in the LM.


Code:
if (event.type=='groupread') then
  grp.response(event.dst,event.getvalue(),dt.bool)
end



Thanks,


Roger
Reply


Messages In This Thread
Get an object to respond to read request on the knx bus. - by rocfusion - 04.07.2015, 14:48

Forum Jump: