Skip to main content

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

Sofabaton X1S / X2 integration for Gladys Assistant

Control Sofabaton X1S / X2 remotes: activities, commands, scenes

Control your Sofabaton X1S / X2 universal remotes from Gladys, locally.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Sofabaton X1S / X2 and click Install.
  3. 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.

SettingTypeRequiredDescription
Getting startedsectionNoEnter 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 addressstringYesLocal IP address of the X1S / X2 hub.
Address of this integrationstringYesIPv4 address the hub connects back to (the machine running Gladys).
Hub port (UDP)numberNoPort where the hub receives the connection request.
Listening port (TCP)numberNoPort where the hub connects back to this integration.

How to install Sofabaton X1S / X2 in Gladys​

  1. In Gladys, open Integrations: Sofabaton X1S / X2 appears in the catalog, next to the native integrations, with a community badge.
  2. 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).
  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/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.

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 🙂