Zum Hauptinhalt springen

SUPLA Smart-Home-Integration, kostenlos und Open Source

SUPLA-Integration für Gladys Assistant

SUPLA Cloud: sensors, lights, relays, roller shutters, gates and door locks.

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

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​

  1. In SUPLA Cloud: My account, Integrations, Personal access tokens, Generate. Scopes: Channels (read), plus Channels (execute actions) for the commands.
  2. 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 localhost is not supported).
  3. Paste it in the configuration of the integration, save, then add the devices from the Discovery.

What is read​

SUPLA functionGladys features
Thermometer, humidity, temperature and humidity, pressuretemperature (°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 RGBpower, brightness, color
Power switch, staircase timerrelay (on/off)
Roller shutteropen / close / stop, position (% open)
Gate, garage doorclosed (from the paired sensor), Open and Close buttons
Gateway lock, door lockOpen 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.

Konfigurationseinstellungen​

Diese Einstellungen fragt SUPLA in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
How it workssectionNeinGladys 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 tokensecretJaSUPLA 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)numberNeinHow 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 onbooleanNeinPower 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 doorsbooleanNeinOff 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 locksbooleanNeinOff by default: the Open button of door and gateway locks is refused.
Language of the names and messagesselectNein

So installierst du SUPLA in Gladys​

  1. Öffne in Gladys Integrationen: SUPLA erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/lm1lc3n7/gladys-supla:0.1.2) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/LM1LC3N7/gladys-supla.

SUPLA benötigt Gladys >=5.1.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

SUPLA ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von LM1LC3N7 veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂