Skip to main content

Anycubic smart home integration, free and open source

Anycubic integration for Gladys Assistant

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​

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

  1. 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.
  2. 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.
  3. 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_name and result.
  • Printer offline: the connection to the printer is lost; variable printer_name.

Action:

  • Read the print status: outputs state, progress, remaining_minutes and online, 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.

SettingTypeRequiredDescription
LAN modesectionNoEnable 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 namestringNoName of the device created in Gladys.
Printer addressstringYesIP address or host name of the printer on your network.
Printer device idstringYesThe device id of the printer, as it appears in its MQTT topics.
Broker portnumberNoMQTT port of the printer.
ConnectionselectNoThe printer broker normally uses TLS.
MQTT userstringNoBroker user name, if the printer asks for one.
MQTT passwordsecretNoBroker password, if the printer asks for one.

How to install Anycubic in Gladys​

  1. In Gladys, open Integrations: Anycubic 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-anycubic: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-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.

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 🙂