Bambulab Home Assistant Dashboards

Bambu Lab Guides Published Feb 11, 2023
Updated Feb 4, 2024
🚩
Latest Version: 2.0.11 / 2024-01-29

If using print preview from the advanced flow, requires v2.0.10+
Also supports the HACS integration
Now supports print preview image for HACs integration! (2.0.10+)

These configurators will let you generate Home-Assistant YAML for displaying the basics of your printers and AMS units.

Requirements

  • This NodeRed setup is completed and you can see your printer and optional AMS units in Home Assistant

OR

  • The HACS integration project for Bambu printers*
    *The dashboards have templates that rely on the state of some sensors and only supports the English translations for the HACs repo at this time.
    If you use HA under a different language, you will need to manually translate the YAML files for entity names. State values may or may not need translation.

    Note: The HACS integration and my NodeRed flows are not fully supported to run side-by-side. It may work, but not recommended.

    I can provide better support for NodeRed setups. As for HACs setups, I can only provide limited support.

And always required:

  • Several frontend HACS repos (See below)
  • Several files in your Home Assistant config directory (See Below)
  • Optional: Smart Plug for turning on/off the printer. If you don't have one, you can take it out of the Control YAML after the fact.

HACS Requirements

Please follow the instructions for each one, as some require additional steps to install (FontAwesome)

  • card-mod
  • lovelace-layout-card
  • hui-element
  • button-card
  • mushroom
  • config-template-card
  • FontAwesome (in HACS integrations, not frontend) (after installing via HACS, you need to add it again in Devices & Services)
  • custom-ui

File Requirements

Thanks to dava, we now have a second choice for a default icon for filament! Both are included above so you can switch at your leisure, but here are the options to know when setting up the configurators below.

Thanks to godely we now have an icon for humidity level to match the style that Bambu provides. This is the new default and requires new SVG icons.

New AMS humidity icon - requires new SVGs (humidity-index-1.svg -> humidity-index-5.svg)

I recommend for a compact solution, to put a combination of an AMS, Printer, and Control YAML inside of a horizontal-layout card. It isn't necessary, but if you want to then this can be done via the visual editor, or manually if you know how to format the YAML. To make it cleaner, make your dashboard a Grid-Layout (optional).

type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
  max_cols: 3
cards:
  <put each here for **manual approach only**, first line of each must start with '- '>

Manual Version of Recommended Card Configuration Parent

These YAMLS don't show all of the printer's sensors, but it's a good start. Here's a preview of what this will look like (minus a Layer card I recently added). There's also some bonus features depending on the state of the chamber light or print!


Printer Display YAML Configurator

Fill in the fields below appropriate for your printer then click the Generate button to download the YAML.

Printer Device Name will be the device name that Home Assistant registered your printer with. You can find this in the MQTT integration devices list, the device page itself, or the "related info" on any of its entities. It should stay in the format of your printer model_name.

The Preview Image inside the printer will be blank unless the advanced NodeRed flow is setup or if using HACs integration, if printer is connected to Bambu Cloud. It will only show up during a print.

💡
This form data is processed in your browser and does not send to any servers or logs.

One suggestion to enhance this further is to add the brand new layer num and total layer num values as an overlay label!


AMS Display YAML Configurator

Fill in the fields below appropriate for your AMS unit(s) then click the Generate button to download the YAML.

Printer Device Name and AMS Device Name will be the device names that Home Assistant registered your printer and AMS unit(s) with. You can find these in the MQTT integration devices list, or in the "related info" of any of their entities. Each AMS will also be "connected via" their connected Printer name.

💡
This form data is processed in your browser and does not send to any servers or logs.


External Spool YAML Configurator

External Spool Card

Fill in the fields below appropriate for your printer then click the Generate button to download the YAML.

Printer Device Name will be the device name that Home Assistant registered your printer with, same as before.

💡
This form data is processed in your browser and does not send to any servers or logs.


Printer Control YAML Configurator

Printer Control Card. "X1-Carbon" is the Title. Note: I have since added a "Layer" panel in here.

Fill in the fields below appropriate for your Printer and HA Instance, then click the Generate button to download the YAML.

Printer Device Name can be retrieved the same as in the previous two configurators, as it's the device name that Home Assistant registered your printer with.

Title is a field to fill with whichever you like. Make it the name or model of your printer, a nickname, code, or title. If left blank, it will default to your printer's device name. It will change what is the "X1 Carbon" is in the example image.

Smart Plug Name is an optional field but highly recommended. If you have a smart plug (metering or not) connected to your printer to control its power, and it's registered as a switch in Home Assistant, put the switch name here. Do not put the switch. prefix.

If you do not have a smart plug for this, deploy the YAML anyways and it will show a small graphical error. Simply delete the button-card inside that has the error / switch entity and it will be fine.

💡
This form data is processed in your browser and does not send to any servers or logs.


Common Problems

My temperature sensors are in °F not °C

If your HomeAssistant settings are set to Imperial units instead of Metric, it is automatically converting all temperatures and such from every sensor to your preferred setting.

You can get around this per sensor by doing the following:

  1. Go to Devices & Services -> MQTT -> Devices and search for the Printer and/or AMS unit.
    (Or select any of the printer entities and go to the device page)
  2. On each temperature related sensor, click it, go to the settings (Gear Icon) in the top right, and change the Unit of Measurement to °C.

My Filament Icons / Colours and/or Humidity Icons are not showing!

Make sure you added the custom_icons folder/files in the right place. This folder does not go into www/ but on the same level in the file hierarchy.

Then make sure you installed Font-Awesome properly (HACS, restart HA, add integration in Devices&Services, restart HA)

Then try another device, browser, private mode. And then try it again an hour later. HA cache can be really dumb sometimes.

If the colours are not showing up, and the cards have an outline/background to them, please verify you've installed the latest card_mod and if so, try re-adding it.

The images/dashboard cards are covered in red errors

Try reinstalling all the custom HACS frontend requirements slowly to make sure you do it right. Check browser console log for any errors loading, or any indication if they aren't loading.

Why don't I see an image of my print in the printer?

Using my NodeRed Flows, this is currently only available if you use the Advanced FTP flow. This works both in LAN and Cloud modes.

If you use the HACs Integration, you need to be on HA-Bambulab v2.0.3+ and the printer must be connected to the Bambu Cloud.


Other

While I do not have custom dashboard yaml for some other functionalities, I can give a few starting points!

For example, there are number-boxes on the printer which will let you set the target temperature for the nozzle and bed. These can be useful in an automation or script called by a button to preheat the chamber, to set to 0 in case of emergency, or to modify the temperatures on the fly. I recommend using the mushroom number card for a clean look if you want them displayed!

Take a look at other sensors, buttons and entities on the printer device in HomeAssistant, I'm sure you can make something great with it.

Lastly, if you want a live-view of the camera and have an X1C, newer firmware has now enabled access! Please follow the following guide.

Bambulab X1C Camera in Home Assistant
How to connect your Bambu Labs X1C camera into Home Assistant!

Tags

WolfwithSword

A maker & hobbyist. Everything creative from the digital to the physical. I strive to make the world around me, rather than let it make me.