Home

Awesome

hacs_badge

Bambu Lab

A Home Assistant Integration for Bambu Lab printers.

Contribution

Want to contribute to ha-bambulab? Great! We have a few small asks though!

NOTE - we did previously use a separate develop branch for staging initial checkins. This is being retired.

If you feel this integration was valuable and want to support it in other ways, you can buy me a coffee.

Setup

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

To install this integration, add this GitHub Repo to the HACS Custom Repositories, or click the badge above.

For configuration, you'll ideally use your Bambu Credentials for the simplest setup and the most features as some sensors are supported by data from your Bambu cloud account print history. You can also, optionally, provide the printer's local IP address to enable the more efficient and reliable direct to printer connection for the printer sensor data and to enable the P1/A1 chamber image support.

However, the Bambu cloud connection doesn't support 2FA and passwordless social media accounts at this time. And it obviously does not support printers explicitly set to Lan Only Mode. If you fall into any of these categories, select the Lan Mode Configuration connection option. You will need to manually provide:

Setup using Bambu Cloud w/ OAuth

If you signed up using any OAuth method, you need to set a password for your Bambu Cloud account:

This will allow you to set a password. Now you can login to the HA integration using your Bambu username and password instead of OAuth.

Features

Fans

SensorNotes
Aux
ChamberNot on A1/A1 Mini
Cooling

Temperatures

SensorNotes
Bed
Target Bed
ChamberX1 only
Nozzle
Target Nozzle

Print Data and Progress

SensorNotes
Current Layer
Total Layer Count
Print Progress
Print WeightWith Bambu credentials
Print LengthWith Bambu credentials
Print Bed TypeBed choice in the print job
Start TimeSimulated. More accurate with Bambu credentials
Remaining Time
End Time
Current Stage
Print Status
Cover ImageWith Bambu credentials
Total Usage Hours* See Note

* This is a running estimate that will be imprecise. Starting hours can be read of the printer screen and provided during initial printer setup or updated later via the configuration flow. And the integration must be running when a print completes to update the value. For non-X1 printers, if the integration is restarted mid-print and Bambu cloud connection isn't setup, the usage hours will not be added as print start time won't be known. It's expected that you'll need to adjust this value occasionally to fix drift from the value the printer itself calculates.

Miscellaneous

SensorNotes
Nozzle Diameters
Nozzle Type
Speed Profile
Timelapse Active

AMS

SensorNotes
Active trayIf AMS present
Active tray indexIf AMS present

Controls

LightsNotes
Chamber Light
Pause
Resume
Stop
Manual Refresh ModeP1/A1 only and only available in local MQTT mode

AMS

SensorNotes
Humidity Index
TemperatureX1 only
Tray 1
Tray 2
Tray 3
Tray 4
Tray attributes:Notes
Color
Empty
K ValueP1/A1 only
Name
Nozzle max temp
Nozzle min temp
Remaining Filament
Spool serial number
Type

External Spool

SensorNotes
External Spool
Attributes:Notes
Color
Empty
K ValueP1/A1 only
Name
Nozzle max temp
Nozzle min temp
Type

Diagnostics

SensorNotes
Enclosure DoorX1 only
Firmware Update Available
Force Refresh
HMS ErrorsAttributes contain the error codes, descriptions and wiki URLs
MQTT connection modeBambu Cloud or Local
Online
Wifi Signal

Cameras

SensorNotes
ChamberP1/A1/A1Mini - need the host IP providing
X1 - Make sure to enable "LAN Mode LiveView" on your printer

Automation device triggers

This integration implements a handful of device triggers to make some common automation scenarios a little easier. See device triggers.

Actions

Example dashboard

You can find an amazing web configurator to easily create a Dashboard for your Bambu printer like the one below at https://www.wolfwithsword.com/bambulab-home-assistant-dashboard/.

image

Issues

Diagnostic File

If you run into any issues, we now have built in diagnostics. To grab the latest information, hit the "Force Refresh Data" button under the Diagnostic section.

image

Then on the device info page for the printer entity, you will see a "Download Diagnostics" button. Make sure you upload this to your Bug ticket/GitHub issue.

img.png

Debug Logging

When logging a bug, always ensure you send us the debug logs.

If you are hitting issues during initial integration setup, you will need to enable logs in your configuration.yaml file by adding the following and restarting Home Assistant:

logger:
  default: info
  logs:
    custom_components.bambu_lab: debug

If you have previously successfully installed the integration, debug logs can be enabled from the integration page within Home Assistant:

img.png

The debug logs will appear in the standard Home Assistant logs.