用于BACnet的openHAB 1.x绑定
This binding provides basic access to BACNet devices for openHAB. This binding is based on bacnet4j-wrapper and limited to it’s basic abilities such reading and writing properties. Keep in mind that this is work in progress and even basic features can be broken.
Drop the .jar file from the plugins/ folder in your openHAB addons
directory and restart your server.
Each BACNet endpoint is identified by a device instance ID, an object type and an object instance ID. The configuration your items file looks as follows:
... {bacnet="key1=value1,key2=value2,..."}
e.g.
Switch reflectors_west_2 "Reflectors West Center" <reflector> (Reflector) {bacnet="device=701105,type=binaryValue,id=3"}
The following keys are available:
device
is the instance ID (integer) of the device as configured on your local network (it is not the IP address of the device)type
is the object type. Available types are analogInput
, analogOutput
, analogValue
, binaryInput
, binaryOutput
, binaryValue
, multiStateInput
, multiStateOutput
, multiStateValue
id
is the instance ID (integer) of the object you want to tie to this openHAB itemaddress
(optional) if you know device ip - must be in x.y.z.w:port
formatnetworkNumber
(optional) network number if different than defaultrefreshInterval
(optional) periods between property read requestswritePriority
(optional) write priority of values set by OpenHab - values 1..16 are supported as specified in standard. Defaults to 0, no priority set on write operation.All these properties are coming from bacnet standard. If you don’t know yet device id or available properties please contact your device manufacturer and ask for appropriate documentation.
This binding have few basic options. Bold items are mandatory
discoveryTimeout
.The binding uses BACNet/IP and sends out a broadcast discovery command on startup. All devices on the local network responding to the broadcast become available to the binding. The binding will continuously update values for all objects that are configured in your item files by issuing read property commands via BACNet. Sending commands/status updates will result in write property commands.
The item types “dimmer”, “number” and “switch” have been tested. As said earlier this binding is still in it’s early development stage and might need many tweaks to work reliably in all cases! Don’t hesitate to report issues in this github project or ask on openhab community forum. See also our contributing rules