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.
#2
Here's an improved version where you don't have to set data type manually. The easiest way for this script to work it to map it on a tag instead of group address. This way you only need a single script for all group adresses that require read-response.


Code:
-- only reply to group read requests
if event.type == 'groupread' then
 obj = grp.find(event.dst)
 
 -- object found and has datatype set
 if obj and obj.decoded then  
   grp.response(event.dst, obj.value, obj.datatype)
 end
end
Reply


Messages In This Thread
RE: Get an object to respond to read request on the knx bus. - by admin - 06.07.2015, 06:04

Forum Jump: