There's no package manager on Homelynk, so please contact support for further help.
For any LogicMachine device: here's a BACnet client package that you can install through System Config -> System -> Packages:
https://dl.openrb.com/lm-15.09/pkg/genoh...27_mxs.ipk
It will add BACnet tab to the web interface which will allow scanning network for BACnet devices and reading object values from them.
Info on using bacnet library from scripts:
Before using any bacnet function, you must include the library:
Read current value of binary or analog object:
Code:
bacnet.readvalue(device_id, object_type, object_id)
Read binary object number 2305 from device 127001:
Code:
value = bacnet.readvalue(127001, 'binary value', 2305)
Read analog object number 2306 from device 127001:
Code:
value = bacnet.readvalue(127001, 'analog value', 2306)
Write new value to binary or analog object priority array:
Code:
bacnet.write = function(device_id, object_type, object_id, value, priority)
Value can be nil, boolean, number or a numeric string
Priority parameter is optional, lowest priority is used by default
Set binary object number 2305 on device 127001 value to true:
Code:
bacnet.write(127001, 'binary value', 2305, true)
Set analog object number 2306 on device 127001 value to 22.5:
Code:
bacnet.write(127001, 'analog value', 2306, 22.5)
Set binary object number 2305 on device 127001 value to true at priority 12:
Code:
bacnet.write(127001, 'binary value', 2305, true, 12)
Set analog object number 2306 on device 127001 value to 22.5 at priority 10:
Code:
bacnet.write(127001, 'analog value', 2306, 22.5, 10)
Clear binary object number 2305 on device 127001 value at priority 12:
Code:
bacnet.write(127001, 'binary value', 2305, nil, 12)