Z-Wave is a low-power radio mesh network for home and small building automation: switches, dimmers, sensors, thermostats, locks, blinds. The Weble IoT Universal Gateway Z-Wave driver turns the gateway into a Z-Wave controller through a Z-Wave USB stick: it includes and excludes devices, creates their values as addresses, reads them and writes the writable ones.
Driver key:
zwave— listed as Zwave under Building Automation in Gateway driver. Licence: required, contact support@weble.ch. Without it the gateway does not connect and its crash log reads missing license. Platforms: Linux and Windows.
0.At start the driver creates the controller addresses under %zw:command/ (section 4) and one address tree per device already known by the stick.
Name, Cluster ID and Description are common to all drivers: see Gateways.
| Label | JSON key | Default | Description |
|---|---|---|---|
| USB Port | json.port |
(empty) | The Z-Wave USB stick, picked from the list of USB interfaces of the gateway. Required. |
| Polling interval (ms) | json.pollingInterval |
5000 |
Only used by gateways that still run the former Z-Wave stack (older boxes). Not used otherwise; set the polling per address (section 3.2). |
| NetworkKey (16 chars) | json.NetworkKey |
(empty) | Only used by gateways that still run the former Z-Wave stack (older boxes). Not used otherwise. |
The device list and the network information are kept by the stick; the driver keeps a cache in the data directory of the box, under the gateway ID.
{
"port": "/dev/ttyACM0"
}
port can also be the unique ID of the USB device, as stored when you pick the stick in the form.
The driver creates the addresses itself; you do not insert Z-Wave addresses by hand. They are shown as a tree in two tabs of the address table, Nodes and Commands.
%zw:node/<node>/<command class>/<endpoint>/[<property key>/]<property>
| Part | Meaning | Values |
|---|---|---|
<node> |
Node ID of the device in the Z-Wave network. | Number |
<command class> |
Number of the Z-Wave command class, for example 37 = Switch Binary, 38 = Switch Multilevel, 49 = Sensor Multilevel, 50 = Meter, 128 = Battery. The description of the address gives its name. |
Number |
<endpoint> |
Endpoint (channel) of the device; 0 for the main endpoint. |
Number |
<property key> |
Present only for values that have one (for example the scale of a meter). | Text or number |
<property> |
Name of the value, as given by the Z-Wave library, for example currentValue or targetValue. |
Text |
Examples:
%zw:node/5/37/0/currentValue — current state of a binary switch, node 5%zw:node/5/37/0/targetValue — write true or false to switch it%zw:node/7/38/0/targetValue — dimmer level to set, node 7Each node also has addresses for its state:
| Address | Content |
|---|---|
%zw:node/<node> |
Node information |
%zw:node/<node>/statusText and /statusCode |
Unknown, Asleep (1), Awake (2), Dead (3), Alive (4) |
%zw:node/<node>/alive, /dead |
true / false when the node becomes unreachable or answers again |
%zw:node/<node>/sleep, /wakeup |
Sleep state of battery devices |
%zw:node/<node>/reachable, /notification, /parameters, /name, /location |
Node attributes created by the driver |
| Column | JSON key | Default | Description |
|---|---|---|---|
| PollingIntensity | json.pollingIntensity |
(empty) | Polling interval of this address, in milliseconds or as a cron expression. Empty or 0: not polled; the value changes when the device reports it. Edit it directly in the address table. |
| Log | log |
none |
See Log and Store value policies. |
Battery devices sleep most of the time: poll them sparingly, they answer only when they wake up.
| Property | Value |
|---|---|
| Readable | Yes, for the values marked readable by the device (polling, manual read). |
| Writable | Values marked writable by the device: the Value cell can be edited in the table, and routes can write them. |
| Created automatically | Yes, by the driver, as it learns the devices. |
| Routable | Yes |
| Loggable | Yes |
The Commands tab holds the controller addresses:
| Address | Use |
|---|---|
%zw:command/addNode |
Write a number of seconds (at most 600) to open inclusion for that time; it counts down to 0. Write 0 to stop. Scan new nodes writes 60. |
%zw:command/nodeAdded |
Last node ID included. |
%zw:command/removeNode |
Same as addNode, for exclusion. Remove devices writes 60. |
%zw:command/nodeRemoved |
Node IDs excluded during the last exclusion. |
%zw:command/softReset |
Write 123456 to restart the controller stick. The network is kept. |
%zw:command/hardReset |
Write 123456 to reset the controller stick to factory settings. Destructive: the Z-Wave network and all its devices are erased from the stick. |
Right-click in the address table, choose Zwave Controller › Remove devices, then put the device into exclusion mode. The excluded node IDs are shown in the window.
Delete the addresses of an excluded node afterwards: deleting the node address %zw:node/<node> deletes all its child addresses.
The plug is included as node 5.
| Address | JSON | Purpose |
|---|---|---|
%zw:node/5/37/0/currentValue |
State reported by the plug; route it to a logger or to BACnet | |
%zw:node/5/37/0/targetValue |
Write true / false from a route or a logic circuit |
|
%zw:node/5/50/0/… |
{ "pollingIntensity": 60000 } |
Meter values of the plug, read every minute |
Route %zw:node/9/dead to an alarm or a notification to be told when the sensor stops answering, and log its Sensor Multilevel value (command class 49).
| Symptom | Cause | What to do |
|---|---|---|
Gateway does not connect; crash log missing license |
No Z-Wave licence on the gateway. | Contact support@weble.ch. |
Log config error: no USB port configured |
USB Port is empty. | Pick the stick in USB Port. |
Log cannot open USB controller on port … |
The stick is unplugged, used by another gateway, or not detected. | Check the USB connection and that only one gateway uses the stick. |
| Inclusion finds nothing | The device is not in inclusion mode, is too far, or still belongs to another network. | Exclude it first (Remove devices), move it closer during inclusion, then include it again. |
A node shows Dead |
The device is out of range, has no power or a flat battery. | Check the power supply or the battery and the distance to the controller. |
Write fails with Read only value |
The device marks this value as read-only. | Write the targetValue address instead of currentValue. |
Log … present but this driver runs on Node … in a cluster: remove the gateway from its cluster |
The gateway shares a cluster and cannot use the newest Z-Wave library. | Set Cluster ID to 0. |
To read the driver log: open the gateway log (see Gateways and Logs and diagnostics).
Keep this gateway on Cluster ID
0: the driver needs its own process, and an error on the USB stick restarts the process, which would restart every gateway of a shared cluster.