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.
#8
Attention!
This script has stopped working after I updated the firmware to the latest version 2016.12.5.

The problem is event.getvalue() always returns zero when it is triggered by groupread. And as abonus the previous code now sets the group object to zero as a side effect.

Workaround is this small change:
if (event.type=='groupread') then
value = grp.getvalue(event.dst)
grp.response(event.dst,value,event.datatype)
end
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
RE: Get an object to respond to read request on the knx bus. - by Thomas - 11.02.2017, 00:11

Forum Jump: