Anycubic smart home integration, free and open source

Anycubic 3D printers on your LAN: progress, temperatures and print events
Anycubic 3D printers on your local network: print progress, temperatures and print events in Gladys.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for Anycubic and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
The integration talks to the printer locally, through the MQTT broker the printer runs in LAN mode. No Anycubic account or cloud token is needed.
- Enable LAN mode on the printer. Warning: switching LAN mode on removes the printer from your Anycubic account, and switching it off does not restore it.
- Open the Configuration tab of the integration and fill in:
- Printer address: the IP address (or host name) of the printer;
- Printer device id: the id that appears in the printer's MQTT topics (
.../printer/public/<model>/<device id>/...); - Broker port (9883 by default), Connection (TLS by default) and, if the printer asks for them, the MQTT user and password.
- Click Test the connection to check that the printer answers.
The printer serves one LAN client at a time: close other tools connected to it (Home Assistant, slicer) first.
Usage
Once configured, the Printer device appears in the discovery list of Gladys. Add it: it exposes the print status, the progress (%), the remaining time, the nozzle and bed temperatures, the current layer and the file name. The values are pushed by the printer, no polling.
Scenes and dashboards
Triggers:
- Print started: filter by printer; variable
file_name. - Print ended: filter by printer and result (finished, failed, cancelled); variables
file_nameandresult. - Printer offline: the connection to the printer is lost; variable
printer_name.
Action:
- Read the print status: outputs
state,progress,remaining_minutesandonline, usable by the next actions of the scene.
Widget Printer status: print state, connection, progress gauge, nozzle and bed temperatures, and a button to test the connection.
Limits
- Only the local connection is implemented: the Anycubic cloud, the ACE filament slots and the camera are not supported yet.
- The report format and the MQTT topics follow the Anycubic firmware as documented by the community; they were not checked against every model. Please report any printer whose values do not show up.
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 Anycubic asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| LAN mode | section | No | Enable LAN mode on the printer, then enter its address and its device id. Switching LAN mode on removes the printer from your Anycubic account. |
| Printer name | string | No | Name of the device created in Gladys. |
| Printer address | string | Yes | IP address or host name of the printer on your network. |
| Printer device id | string | Yes | The device id of the printer, as it appears in its MQTT topics. |
| Broker port | number | No | MQTT port of the printer. |
| Connection | select | No | The printer broker normally uses TLS. |
| MQTT user | string | No | Broker user name, if the printer asks for one. |
| MQTT password | secret | No | Broker password, if the printer asks for one. |
How to install Anycubic in Gladys
- In Gladys, open Integrations: Anycubic appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/gboulvin/gladys-anycubic: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-anycubic.
Anycubic 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
Anycubic 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