MQTT Support?

Is MQTT supposed to work with the current and future FW (X1 Carbon) ?

Has anyone been able to test it with mosquitto_sub command ?

I was about to add additional lights that turn on/off/red/green based on printer status. Couple of videos available on how to do it. But those depend on printer supporting MQTT.

Right now the X1C supports MQTT. I currently have it setup in my Home Assistant server via an added integration GitHub - greghesp/ha-bambulab: A Home Assistant Integration for Bambu Lab Printers. I currently use an automation rule to enable my vent fan anytime the chamber fan turns on. I have plans to add more, but turning lights on and off would be easy enough to do.

I’m not exactly sure how long they will continue to support MQTT since they are actively working on implementing an API for accessing the devices. I’d hazard to guess that they would disable it once the API is available.

Thanks! Yes I noticed many people have added automation using home assistant. There is also a bl led controller that uses MQTT. I was trying to just experiment using my Linux PC.

Would be nice to hear from BL if all those would stop working at some point.
And whatever APIs they replace MQTT with, will those be exposed for customers to call as well.

Finally cracked it !!!
Here are the steps to use mosquitto_sub.
You will obviously need the IP of the printer and the access code.

  1. Find access code for your printer.
    Gear/Nut icon → General → See the hexadecimal string listed in the “LAN only” section. You do NOT need to turn LAN only mode on.

  2. Get the certificate used by the mqqt broker on the printer (replace the printer IP)
    openssl s_client -showcerts -connect <pinter ip>:8883 </dev/null | sed -n -e '/-.BEGIN/,/-.END/ p' > blcert.pem

  3. Use the following command to see everything published by the printer periodically (replace the printer ip & access code below with what you found in step 1)
    mosquitto_sub -h <printer ip> -p 8883 --cafile ./blcert.pem --insecure -u bblp -P <access code> -t \#

8 Likes

is it possible to send commands? or all is readonly one way data FROM printer?

You can send commands.

ah thanks a lot for that

and OT: how can i log messages history? i’ve tried mqtt expolorer but it only shows last one, and when printer spams report every second it is hard to track responses;]