Skip to main content

Calaos smart home integration, free and open source

Calaos integration for Gladys Assistant

Calaos home automation in Gladys: lights, dimmers, shutters, sensors and scenarios, in local.

Brings the rooms and IOs of your Calaos home automation server into Gladys: lights, dimmers, colour lights, shutters, sensors, wall switches, internal variables and scenarios. Gladys talks to calaos_server on your local network, through the JSON API the Calaos apps use, and receives every change live.

Tested against a real calaos_server 4.8.3, with simulated IOs, not on an installation with real Wago, KNX or 1-Wire hardware: feedback welcome on the forum.

Requirements​

  • A Calaos server (Calaos OS, or the calaos_base container) reachable from the Gladys machine.
  • The user name and password of the Calaos apps (Calaos Home, the web app).
  • Gladys 5.1 or later.

Configuration​

Address​

The IP address of the Calaos server, as seen from Gladys: 192.168.1.20. Port 5454 is added when you give none; give 192.168.1.20:5454 or http://192.168.1.20:5454 otherwise. Use the port of calaos_server itself, not the HTTPS port of the web app: Gladys does not accept the self-signed certificate of a Calaos box.

User name and password​

The ones of the Calaos apps. After a wrong password, Calaos slows down every new attempt from the same address for a while (up to a minute): Gladys tries again a few seconds later, then every minute.

Choosing what to import​

Every IO of every room is offered in the Discovery tab of the integration: add the ones you want. Only the IOs of these rooms keeps the rooms you list (Calaos room names, separated by commas).

The IOs hidden in the Calaos apps (internal variables, technical outputs) are only offered with Also offer the hidden IOs. Wall switches and buttons are always offered, as Calaos hides them by default.

Language​

Language of the feature names sets the language of the names Gladys gives to the features (On/off, Brightness…), when the device is added.

What you get​

Devices​

One Gladys device per Calaos IO, named after the IO and its room:

Calaos IOIn Gladys
Lightlight, on/off
Dimmerlight, on/off and brightness
Colour light (RGB)light, on/off and colour
Shuttershutter, open / stop / close
Smart shuttershutter, open / stop / close and position (100 % = open)
Temperaturetemperature sensor (°C)
Analog inputthe sensor of its style or unit: humidity, pressure, lux, W, kWh…
Switch, door, motion, smoke…input, or the detector of its style (opening, motion, leak…)
Long-press and triple switchesbutton: click, long click, double and triple click
Internal booleanswitch
Internal text, text inputtext
Scenariopush button that starts it

Not imported: analog outputs, internal numbers, time ranges, timers, cameras, audio players and AV receivers. Test the connection lists what was left out. An analog input with a unit Gladys does not know (or a percentage without the humidity style) is left out too: choose its style in Calaos Installer.

States arrive live, a few hundredths of a second after the change. Measurements are sent at most every 10 seconds, the position of a moving smart shutter every 2 seconds.

Dashboard widget​

Calaos: the connection, the Calaos version, live updates or polling, the IOs offered and added, and a button to read the IO list again (it can be hidden in the widget settings).

Scene trigger​

Calaos IO changed: an IO changed in Calaos, even one not added to Gladys (a button, a scenario, an internal variable). Filter on the IO name and the new value; the variables give the id, the name, the room, the new and the previous value. Temperatures and analog inputs do not start it (use their device), nor the intermediate positions of a moving smart shutter.

Scene actions​

  • Start a Calaos scenario, by its name, even one not added to Gladys.
  • Send a value to a Calaos IO, as the Calaos rules do: true, false, toggle, set 50, up, down, stop, impulse 500, set #FF8000… The IO is its name, or its id when two IOs share a name (the error message gives the ids).

Scene examples​

  • When the "Front door" button is pressed long, start the Calaos scenario "Leaving".
  • When Gladys detects nobody at home, send true to the internal variable "Away mode" that your Calaos rules use.
  • When the Calaos IO "Doorbell" becomes true, send a Telegram message.

Troubleshooting​

  • Calaos does not answer: check the address and the port (5454) from the Gladys machine, and that calaos_server runs.
  • Login refused: check the user name and the password in the Calaos apps. After several failures, wait a minute.
  • Updates: every 30 s in the widget: the WebSocket of Calaos is refused (a proxy in between that does not let it through). Gladys reads the states over HTTP every 30 seconds and tries the WebSocket again regularly. Meanwhile, button presses are missed and the scene trigger only sees the changes still there at the next read.
  • An IO is missing: it is hidden in Calaos (see the option), outside the chosen rooms, or of a kind not imported (Test the connection lists them).

Limits​

  • No thermostat, audio player, camera or AV receiver.
  • A door or window switch is read as open when Calaos says true.
  • A plain shutter has no position: its state turns to closed at the end of its travel time.
  • Commands go through set_state: Calaos accepts or refuses them, without telling why.

Privacy​

Everything stays on your local network: Gladys only talks to your Calaos server. The password is stored by Gladys, never written to the logs.

Configuration settings​

These are the settings Calaos asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your Calaos IOs in GladyssectionNoGladys reads the rooms and IOs (inputs and outputs) of your calaos_server through its JSON API, on port 5454, and follows their changes live. Each IO then shows up in the Discovery tab: add the ones you want. Use the user name and password of the Calaos apps.
Address of calaos_serverstringYesIts IP address, and its port if it is not 5454, as seen from the Gladys machine. Not a .local name.
User namestringYes
PasswordsecretYes
Only the IOs of these roomsstringNoCalaos room names, separated by commas. Empty: every room.
Also offer the hidden IOsbooleanNoIOs not visible in the Calaos apps (internal variables, technical outputs). Wall switches are always offered.
Language of the feature namesselectNo

How to install Calaos in Gladys​

  1. In Gladys, open Integrations: Calaos 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-calaos: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-calaos.

Calaos 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​

Calaos 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 🙂