With credits to kmxak, djalexz, all other involved and inspired by this forum thread this adapter integrates Bambulab 3D-Printers into ioBroker.
Please provide your Printer IP-Address, API token and serial number in adapter settings; these are required for a local connection (no cloud involved) to your printer. These credentials are stored locally and not shared to third parties.
The location of the API token and serial number depends on your printer model:
- Navigate to Settings → Network on your printer display
- Enable "LAN Mode Only" (nur Lan-Modus)
- Once enabled, IP address, access token, and serial number will be displayed
- Navigate to Settings → Network on your printer display
- The access token is directly visible in network settings (no LAN mode required)
- Serial number can be found in the same menu or in device information
- Navigate to Settings → Network on your printer display
- The access token is directly visible in network settings
- Serial number can be found in the same menu or in device information
Note: You must select your Printer model correctly in the adapter settings. Only the X1 series allows pushing of messages, P1x series needs to request by interval setting (default every 5 seconds)
| Printer-Model | Status |
|---|---|
| AMS | ✅ |
| A1 | ✅ |
| P1p | ✅ |
| P1s | ✅ |
| X1 | ✅ |
| Command | X1C | X1 | P1P | P1S | A1 |
|---|---|---|---|---|---|
| Custom g-code | ✅ | ✅ | ✅ | ✅ | ✅ |
| Pause | ✅ | ✅ | ✅ | ✅ | ✅ |
| Resume | ✅ | ✅ | ✅ | ✅ | ✅ |
| Stop | ✅ | ✅ | ✅ | ✅ | ✅ |
| Fan-Aux | ✅ | ✅ | ✅ | ❌ No hardware support | |
| Fan-Chamber | ✅ | ✅ | ✅ | ❌ No hardware support | |
| Fan-ToolHead | ✅ | ✅ | ✅ | ✅ | |
| Light-Chamber | ✅ | ✅ | ✅ | ✅ | |
| Light-Logo | ✅ | ✅ | ❌ No hardware support | ❌ No hardware support | ❌ No hardware support |
| Temperature-Bed | ✅ | ✅ | ✅ | ✅ | ✅ |
| Temperature-Nozzle | ✅ | ✅ | ✅ | ✅ | ✅ |
| Speed Level | ✅ | ✅ | ✅ | ✅ | ✅ |
[ ] Restructure/complete current control states in control folder [ ] Optimize state attributes definitions
If you like my work, please consider a personal donation
(this is a personal Donate link for DutchmanNL, no relation to the ioBroker Project !)

Sentry.io is a service for developers to get an overview about errors from their applications. And exactly this is implemented in this adapter.
When the adapter crashes or any other Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you allow iobroker GmbH to collect diagnostic data, then also your installation ID (this is just a unique ID without any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of this helps me to provide error-free adapters that basically never crash.
- (DutchmanNL) Improve error messages if printer is offline or not reachable. #xxx
- (DutchmanNL) Solve several type definition issues. #203, #202, #201, #200, #199, #198
- (DutchmanNL & Copilot) Fix type conversion errors by replacing deprecated
tonumberwith properTOINTEGER/TOFLOATmodifiers. #197 - (DutchmanNL & Copilot) Add missing state attribute definitions for HD2 printer during printing (height, platform, tool, mapping). Fixes #194
- (DutchmanNL & Copilot) Fix HMS error code translations timeout error handling (#183)
- (DutchmanNL & Copilot) Block dangerous G-code commands during printing for safety (#185)
- (DutchmanNL & Copilot) Fix P1S fan speed display issues - double conversion and incorrect mapping (#184)
- (DutchmanNL & Copilot) Add comprehensive API token location documentation for all Bambulab printer models (#182)
- (DutchmanNL) Add missing state definitions to resolve adapter warnings (#181)
- (DutchmanNL) Empty finishTime and avoid time calculation when not printing (#179)
- (DutchmanNL) Fix MQTT reconnection to prevent maximum call stack size exceeded error (#177)
- (DutchmanNL & Copilot) Fix several type mismatches #143 #139 #130
- (DutchmanNL) Updated missing definitions for full MQTT API incl H2D
- (DutchmanNL & Copilot) Fix repository checker issues and improve admin UI compatibility
- (DutchmanNL) Added doorOpen indicator, Fixes #115
- (DutchmanNL) update state definitions, (solves #77 #58)
- (DutchmanNL) update connection handling, show connection error only once (Solves #99 #78 #74)
MIT License
Copyright (c) 2025 DutchmanNL [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

