Skip to main content

Z-Way smart home integration, free and open source

Z-Way integration for Gladys Assistant

Z-Wave devices of your Z-Way controller (RaZberry, UZB, Z-Station), in local.

The Z-Wave devices of your Z-Way controller (Z-Wave.Me: RaZberry, UZB, Z-Station, Wiren Board...) in Gladys, in local: their states, their commands, the presses of your remotes, your Z-Way scenes.

For those who keep their Z-Wave network on Z-Way. Gladys also drives Z-Wave natively, through Z-Wave JS UI: if you are starting a network or ready to move it, the native integration needs no Z-Way. This integration reads Z-Way as it is, without touching its network, its rules or its scenes.

Developed without the hardware: feedback welcome. It was tested against a real Z-Way 5.0.1 server, with the virtual devices of its apps, but without a Z-Wave controller: tell us how it behaves with your devices on GitHub. Not affiliated with Z-Wave.Me.

Requirements​

  • A Z-Way server (version 3 or later) reachable from Gladys, on its web port (8083 by default).
  • A Z-Way user who sees the devices to bring into Gladys (admin, or a user given those rooms), or a token of the Z-Way interface.

Configuration​

  • Z-Way address: the IP address or name of the Z-Way server (192.168.1.20); port 8083 when none is given. A full address such as http://192.168.1.20:8083 works too.
  • User and Password: those of the Z-Way interface.
  • Token (optional): instead of the user and password. In the Z-Way interface, open the settings of your user, section Tokens, and copy a token (the whole xxx/yyy value). Z-Way then keeps it for good.
  • Refresh interval: how often Z-Way is asked for the devices that changed (5 seconds by default). A reading asks only for what changed since the previous one: a few hundred bytes when nothing moved.
  • Control door locks from Gladys: off by default. Door locks are then shown but cannot be opened or locked from Gladys, its scenes or a voice assistant. After turning it on, click Update on the lock in the Discovery tab.
  • Language of the feature names: the names of the features of new devices and the messages of the integration.

Then open the Discovery tab of the integration and add the devices you want.

Devices​

Z-Way splits each Z-Wave device into one element per function (switch, temperature, battery...): each element becomes a Gladys device, named as in Z-Way, with its Z-Way room as a hint in its parameters. Elements hidden in Z-Way ("permanently hidden") and types Gladys cannot show are left out.

Switches, dimmers, shutters and colors​

  • Binary switch: Switch (on/off). A siren: Siren.
  • Dimmer: Light (on/off) and Brightness (0-100 %).
  • Shutter or blind motor: Position (0-100 %, 100 = open) and Shutter (open, close, stop).
  • Color controller (RGB): Light and Color.

Sensors​

  • Binary sensors, by their Z-Way probe: Opening (door, window), Motion, Water leak, Smoke, Carbon monoxide, Tamper; any other binary sensor shows as Sensor.
  • Multilevel sensors: Temperature, Humidity, Illuminance, UV index, CO2, Air pressure, and the electricity meters Power, Energy, Voltage, Current. A sensor of another kind (seismic, acceleration...) is left out.

Thermostats, door locks and batteries​

  • Thermostat: Target temperature, within the limits given by Z-Way.
  • Door lock: Lock (locked or not), read-only unless you allow its control in the configuration.
  • Battery level: Battery (%).

Remotes and scenes​

  • A Z-Wave remote or wall controller: Button, which takes the last command received, and the scene trigger below. Z-Way shows a remote either as one element per button ("switchControl", made by its SwitchControlGenerator app) or as one element for the whole remote ("sensorDiscrete", Central Scene).
  • A Z-Way scene (Z-Way "toggleButton"): Scene, a push button that activates it.

Scene trigger: Z-Way button pressed​

Fires when a Z-Wave remote or wall controller sends a command. Filters: the remote, and the command (on, off, hold or release up or down for a switchControl; press, hold, release for a Central Scene remote). Variables: the name of the device, the command, the button number (Central Scene, 0 otherwise) and the number of presses (a double press gives 2).

Z-Way reports changes only: the same command twice in a row (on, then on again) fires once. The activation of a Z-Way scene changes nothing Z-Way reports, so it fires no trigger either.

Scene action: Activate a Z-Way scene​

Activates a scene of Z-Way by its name (case and spaces ignored), even one not added to Gladys. The name accepts scene variables. Gladys shows in red the reason of a failure (no scene of that name, Z-Way out of reach).

Widget: Z-Way​

Counts over the devices added to Gladys: devices, failed devices (Z-Way marks them failed when they stop answering), low batteries (20 % or less), open doors and windows. Its settings hide the counts and add up to four buttons that activate Z-Way scenes (names separated by commas), each asking for a confirmation.

Test the connection​

The Test the connection action reads Z-Way again and tells how many devices it found for Gladys and how many Z-Way scenes, or why it failed.

Troubleshooting​

  • Z-Way does not answer: check the address and the port (8083), and that Gladys reaches that network.
  • Z-Way refused the user, the password or the token: check them in the Z-Way interface. After a refused password, the integration waits a minute before trying again.
  • A device is missing: Z-Way hides it from the user, or Gladys has no type for it. Search again in the Discovery tab after a change in Z-Way; added or removed devices are also found at the next reading.
  • A device shows as unreachable: Z-Way marks the Z-Wave device as failed (no answer to its last request); it comes back on its own when the device answers again.
  • More details in the logs of the integration with LOG_LEVEL=debug.

Limits​

  • No push from Z-Way: the integration reads it at the chosen interval, so a change shows within that delay (a command of Gladys is read back after about 1.5 seconds).
  • Z-Way reports changes only, and the integration sees the last state at each reading: the same command of a remote twice in a row counts once, and of several presses between two readings only the last one fires the trigger. A short refresh interval helps.
  • A shutter does not report its movement: Gladys gets its position, not "opening" or "closing".
  • Z-Way thermostat modes, energy-saving modes, color temperature and other probes are not read yet.
  • Only Z-Way on the local network: the remote access of Z-Wave.Me (find.z-wave.me) is not used.

Configuration settings​

These are the settings Z-Way asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your Z-Way serversectionNoFor a Z-Wave network kept on Z-Way (Z-Wave.Me). The integration reads Z-Way through its local API, with a user and password or a token.
Z-Way addressstringYesIP address or name of the Z-Way server; port 8083 when none is given.
UserstringNoA Z-Way user who sees the devices (admin by default).
PasswordsecretNoPassword of this user. Not needed with a token.
Token (optional)secretNoA token of the Z-Way interface (user settings, Tokens), used instead of the user and password.
Refresh intervalselectNoHow often Z-Way is asked for the devices that changed.
Control door locks from GladysbooleanNoOff: door locks are shown, but cannot be opened or locked from Gladys, its scenes or a voice assistant.
Language of the feature namesselectNoUsed for the names of new devices and for the messages of the integration.

How to install Z-Way in Gladys​

  1. In Gladys, open Integrations: Z-Way appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-zway:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/guim31/gladys-zway.

Z-Way requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Z-Way is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂