Sofabaton X1S / X2 smart home integration, free and open source

Control Sofabaton X1S / X2 remotes: activities, commands, scenes
Control your Sofabaton X1S / X2 universal remotes from Gladys, locally.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for Sofabaton X1S / X2 and click Install.
- Wait for the container to start.
Configuration
Enter the IP address of the hub and the address of the machine running Gladys. The hub does not accept connections: the integration asks it over UDP (port 8102) to connect back, and the hub then connects to the listening port (TCP 8100). The container must therefore be reachable by the hub on that port (host network, or a published port). Use Test the connection to check.
Usage
Once connected, the hub shows up in the Discovery tab as Sofabaton hub: one switch per activity (on starts it, off stops it, the state follows the hub) and a Power off button. Only one hub is supported.
Scenes and dashboards
- Triggers: Activity changed (filter by activity name; variables: activity, activity_id, previous_activity, running) and Hub connection changed.
- Actions: Start an activity (name or id), Power off, Send a command (device id and key code, 0 to 255).
- Widget Sofabaton hub: connection, running activity and a power-off button.
Known limitation
The wire protocol was written from community documentation, without access to a hub: opcodes and payloads (src/hub/protocol.js) may need adjusting after a capture on a real X1S / X2. Please report what you observe.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.
Configuration settings
These are the settings Sofabaton X1S / X2 asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Getting started | section | No | Enter the hub IP address. The hub connects back to this integration, so it must reach it on the listening port (host network, or a published port). |
| Hub IP address | string | Yes | Local IP address of the X1S / X2 hub. |
| Address of this integration | string | Yes | IPv4 address the hub connects back to (the machine running Gladys). |
| Hub port (UDP) | number | No | Port where the hub receives the connection request. |
| Listening port (TCP) | number | No | Port where the hub connects back to this integration. |
How to install Sofabaton X1S / X2 in Gladys
- In Gladys, open Integrations: Sofabaton X1S / X2 appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/gboulvin/gladys-sofabaton-x1s-x2:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/gboulvin/gladys-sofabaton-x1s-x2.
Sofabaton X1S / X2 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
Sofabaton X1S / X2 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 gboulvin, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation