Integración domótica SUPLA, gratuita y de código abierto

SUPLA Cloud: sensors, lights, relays, roller shutters, gates and door locks.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
Gladys reads your SUPLA installation through SUPLA Cloud (cloud.supla.org, or your own self-hosted SUPLA Cloud) and its API v3, with a personal access token. Each channel of a handled kind becomes a device to add from the Discovery.
Unofficial integration, not affiliated with SUPLA. Never tested with a real device: written from the API description of SUPLA Cloud and tested against a simulated server.
Setup
- In SUPLA Cloud: My account, Integrations, Personal access tokens, Generate. Scopes: Channels (read), plus Channels (execute actions) for the commands.
- Copy the whole token: its second part (after the dot) is the address of
your SUPLA Cloud. Gladys sends the token only to that server, in HTTPS, with
a valid certificate and a public domain name (a self-hosted SUPLA Cloud
with a self-signed certificate, an IP address or
localhostis not supported). - Paste it in the configuration of the integration, save, then add the devices from the Discovery.
What is read
| SUPLA function | Gladys features |
|---|---|
| Thermometer, humidity, temperature and humidity, pressure | temperature (°C), humidity (%), pressure (hPa) |
| Opening sensors (gate, gateway, garage door, door, roller shutter, window, roof window) | closed (1 closed, 0 open) |
| Light switch, dimmer, RGB lighting, dimmer and RGB | power, brightness, color |
| Power switch, staircase timer | relay (on/off) |
| Roller shutter | open / close / stop, position (% open) |
| Gate, garage door | closed (from the paired sensor), Open and Close buttons |
| Gateway lock, door lock | Open button |
Thermostats, meters, valves and the other functions are left out (the status counts them). A channel offline in SUPLA Cloud publishes nothing and shows an "offline" badge; a "no value" of a sensor (such as -275 °C) is never published.
The channels are read every 60 s by default (30 to 3600), one request per read. SUPLA Cloud limits the API requests of an account: when few are left, the reads wait for the reset; a 429 or a 5xx pauses the reads (1 min to 6 h, growing, kept across restarts).
Commands and options
- Never blocked: turning a light or a relay off, stopping a shutter, closing a gate. They are refused only in these cases: the integration has no valid token; SUPLA Cloud answers an error (the action is not possible on that channel, or the token lacks the "execute actions" scope); the network does not let it leave within 3.5 s ("nothing sent"; a Turn off is then kept, see below). No option, pause, quota, refused token, offline channel, read, other command in progress, Test button nor new token saved holds them or cuts them in flight. A Turn off that SUPLA Cloud did not take (not sent, 429, 5xx, network, no answer) is kept until a read, left after it, shows the channel off: while it reads on, the next reads send it again (3 times at most, 10 min at most). A Turn off taken by SUPLA Cloud (2xx) is never sent again by itself: if a later read shows the channel on, it was turned on again by someone else (SUPLA app, switch); the integration accepts it, forgets that Turn off and says so once in its status and log. A newer command of that channel cancels a kept Turn off only when SUPLA Cloud takes it (2xx); refused (4xx, 429) or unanswered, the Turn off stays kept. Once the channel reads off, it is never sent again: a light turned on next by the SUPLA app or a switch is not targeted. A Close is never sent twice by itself: one more impulse could open the gate again.
- Behind an option, off by default: turning a relay on (Allow turning relays on), opening a gate or a garage door (Allow opening gates and garage doors), opening a door lock (Allow opening door locks). Closing a garage door needs the gate option too: an up-and-over door moves on each impulse, whatever its position (the option is read again right before each send: turned off at the last moment, nothing is sent). For 30 s after a Close, the Open of that gate or garage door is refused.
- Free: turning a light on, brightness, color, opening, closing and positioning a roller shutter.
Each command (but the never blocked ones) reads the channel first (function, connection, state), is checked again right before it is sent, and answers Gladys within 3.5 s. It is "done" once a later read shows it (reads after 3, 10 and 30 s); the result stays in the status of the integration for 10 min.
Privacy
The token is kept by Gladys in its database, never shown again, never written to the logs, the status nor /data. A refused token leaves only a 16-bit salted mark in /data, so that it is not tried again alone after a restart.
Parámetros de configuración
Estos son los parámetros que SUPLA te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| How it works | section | No | Gladys reads your SUPLA installation through the API v3 of SUPLA Cloud (cloud.supla.org or your own self-hosted SUPLA Cloud) with a personal access token: thermometers, humidity and pressure sensors, opening sensors, lights (on/off, brightness, color), relays, roller shutters, gates, garage doors and door locks, as devices to add from the Discovery. Turning a light off, stopping a shutter and closing a gate are never blocked. Turning a relay on, opening a gate or a garage door (closing a garage door too) and opening a door lock are each off until you allow them below. Thermostats are not handled yet. Never tested with a real device. Unofficial integration, not affiliated with SUPLA. |
| SUPLA personal access token | secret | Sí | SUPLA Cloud, My account, Integrations, Personal access tokens, Generate. Scopes: Channels (read) to read, plus Channels (execute actions) for the commands. Copy the whole token (it ends with the address of your SUPLA Cloud). Kept by Gladys in its database, never shown again, sent only to SUPLA Cloud (the server named inside the token, in HTTPS). If SUPLA Cloud refuses it, Gladys stops until you save another one or click Test. |
| Refresh interval (s) | number | No | How often the channels are read, in seconds (30 to 3600). One request per read; SUPLA Cloud limits the API requests of an account. |
| Allow turning relays on | boolean | No | Power switches and staircase timers: off by default, a relay can only be turned off. A relay may power anything (heater, pump, gate motor): allow it only if you know what each relay drives. |
| Allow opening gates and garage doors | boolean | No | Off by default: the Open buttons of gates and garage doors are refused. Close a gate is never blocked; Close a garage door needs this option too (an up-and-over door moves on one impulse, whatever its position). |
| Allow opening door locks | boolean | No | Off by default: the Open button of door and gateway locks is refused. |
| Language of the names and messages | select | No |
Cómo instalar SUPLA en Gladys
- En Gladys, abre Integraciones: SUPLA aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
- Haz clic en Instalar. Gladys descarga la imagen Docker (
ghcr.io/lm1lc3n7/gladys-supla:0.1.2), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración). - Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
- También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-supla.
SUPLA requiere Gladys >=5.1.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.
¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.
Sobre las integraciones externas
SUPLA es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.
- Explorar todas las integraciones, nativas y de la comunidad
- Crear y publicar tu propia integración externa
- Código fuente en GitHub — fuente de esta documentación