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.

Writing setpoint 8bytes
#1
I want to write all the heating and cooling setpoints via BACnet or KNXip. Anyone that has handled this before? 



See attachment for comments in the documentation. 

Can this be done directly via BACnet or KNXip? Or would I have to script this for each room? 

All help on the matter is much appreciated.

Attached Files Thumbnail(s)
   
Reply
#2
Here's how to combined 4 separate object values into a single object:
Code:
addrs = { '1/1/1', '1/1/2', '1/1/3', '1/1/4' }
value = ''

for _, addr in ipairs(addrs) do
  val = grp.getvalue(addr)
  enc = busdatatype.encode(val, dt.float16)
  value = value .. enc.dataraw
end

grp.write('1/1/5', value, dt.raw)

This will work over KNX/IP but not over BACnet. Each BACnet datapoint can only store a single value.
Reply


Forum Jump: