oBIX (Open Building Information Exchange) is a REST-based protocol for building automation systems. It provides a standardized way to access building data via HTTP/XML, making it interoperable with web technologies. oBIX is used by several building automation vendors including Tridium Niagara, Honeywell, and Siemens.
The Weble universal gateway oBIX driver acts as an oBIX client that connects to an oBIX server via HTTP to read and write building automation data points.
The driver supports:
/obix/config/Programme is imported as an address named %obix:config/Programme/....
Niagara stations, fixed discovery root. The driver tests the connection and discovers points under the fixed path
/obix/config/Programme. The station must expose a folder namedProgrammedirectly underConfig, readable by the oBIX user. If this path does not exist the connection test fails and the gateway keeps restarting. Points located elsewhere on the server are not discovered.
Create a new gateway and select the Obix driver. Configure:
http:// or https:// (e.g. http://192.168.1.100), and Port if the server does not use 80 / 443.obix).Set Default Polling to a non-zero value (for example 5000) before the first start if the discovered points must be updated live (see section 2).
Once connected, the driver discovers the points by itself under /obix/config/Programme; there is nothing to create by hand. An address typed manually is linked to its oBIX point (live updates, writing) only if its name matches a point found by the topology refresh; otherwise it can only be read on demand.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name. |
| Cluster ID | cluster | Cluster identifier. |
| Description | description | Optional description. |
| Username | username | oBIX server username. |
| Password | password | oBIX server password. |
| Host | host | Address of the oBIX server: IP address or host name, optionally prefixed with http:// or https:// (https:// selects TLS). Do not add a port or a path here. |
| Servlet name | servletName | oBIX servlet path. Default: obix. The full URL is built as <host>/<servletName>/.... |
| Port | port | TCP port of the server. Empty = 80 with http://, 443 with https://. |
| Parallel queries | parallelQueries | Number of simultaneous HTTP requests. Default: 10. |
| Default Polling | defaultPolling | Value copied into Polling of every address created by discovery. Set it to a non-zero value (for example 5000) before the first start if the discovered points must be updated live. Changing it later does not modify existing addresses. |
| Topology refresh | refreshInterval | Interval in milliseconds for automatic topology refresh (minimum 10000). 0 = disabled: the topology is read only at start. |
| ASCII Path | asciiPath | When enabled (default), the $xx escape sequences used by Niagara in point paths (for example $2d for -) are decoded in the address names. Some codes are replaced by a word instead of a character: $20 (space) becomes space. Choose the setting before the first discovery: changing it later renames every address and leaves the old ones, with their routes and logs, orphaned. |
Addresses use the prefix %obix: followed by the oBIX object path:
%obix:config/Programme/<folder>/<point> — a point discovered under the Programme folder of the station.Addresses are displayed in a tree structure based on the / path separator.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | The oBIX address path. |
| Polling | polling | 0 (default) = the point is not subscribed: its value is only read during a topology refresh. Any other value subscribes the point to an oBIX Watch; changes are then fetched about every 5 seconds, whatever the number entered. Addresses with the same value share one Watch, so use a single value (for example 5000) unless you want to split the points into several Watches. |
| Description | description | Optional description. |
| Tab | Description |
|---|---|
| Addresses | The discovered oBIX points. |
| Driver | Internal addresses of the driver, prefixed with %obix-driver:. |
| Address | Description |
|---|---|
%obix-driver:driverStatus |
initializing, updating addresses or ready. |
%obix-driver:pendingOperationsStatus |
Number of address creations and updates still queued (high during the first discovery). |
%obix-driver:pendingQueriesStatus |
Number of HTTP requests waiting. |
%obix-driver:refresh |
1 while a topology refresh is running. Write 1 to start a refresh by hand: new points of the server are then imported. |
%obix-driver:watchers |
State of the oBIX Watches, one per distinct Polling value (%obix-driver:watchers/<polling>). Each has the sub-addresses id, status, err, instance, polling, addresses and restart (write 1 to recreate the Watch). |
Writable addresses have json.writable = true. The value editor adapts automatically to the data type:
| Property | Value |
|---|---|
| Readable | Yes (all point addresses; the addresses of the Driver tab are not readable) |
| Writable | Depends on the oBIX object (json.writable) |
| Routable | Yes |
| Loggable | Yes |
oBIX addresses can be dragged onto the address grid of a BACnet gateway: drop the selection on a BACnet object, and the selected oBIX addresses are assigned in order to that object and to the following ones in the grid. The routes are created in one step (existing routes between the same addresses are replaced, after confirmation). For each route, the Description entered on the oBIX address is copied to the description and objectName of the BACnet object. Units are not transferred: the oBIX driver does not store the unit of a point.
10000) to read it again periodically, or write 1 to %obix-driver:refresh.set action of the point; an error returned by the server is reported as the write error.online when the Watch delivers the point, ! <error> when the server reports an error for it.| Log message | Meaning |
|---|---|
initial connection test to ... failed |
/obix/config/Programme could not be read: wrong host or port, or the folder does not exist on the station. |
401 Unauthorized |
Wrong user name or password, or Basic authentication not allowed for this user. |
connection refused |
Wrong port, or oBIX service not running. |
watcher ... no longer exists on server, restarting |
The station dropped the Watch; the driver recreates it by itself. |