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.
Thanks,
Roger
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