Hubitat Driver for BamBuddy
A custom Hubitat Elevation driver for monitoring and controlling your Bambu 3D printers through BamBuddy directly from your home automation platform.
My main use case for this is to have a physical button on my printer that fires the Clear Plate command in BamBuddy. However it's the basis to do so much more. PR's are welcome :)
If you don't want to use BamBuddy but you came here looking for something more native with your Bambu printer, check out jonnyborbs Bambu Lab 3D Printer driver.
- Connects to your BamBuddy instance via REST API
- Optionally connects to a MQTT broker if you've got one setup
Commands:
- Clear Plate
- Light on/off
- Pause/Resume/Stop print
States:
- health
- mqttStatus
State for each printer:
- printer1Connected
- printer1CurrentPrint
- printer1Name
- printer1Progress
- printer1RemainingTime
- printer1State
Capabilities
- Initialize
- Refresh
- Switch
- In Hubitat → Drivers Code, click the "+ Add driver" button and paste contents of
bambuddy-printers.groovyand click Save - In the Devices section, create a new Virtual Device, choose driver
BamBuddy Printers - After creation, in your new device's preferences, set the host of the BamBuddy instance, an API Token with these permissions:
- Read Status
- Manage Queue
- Control Printer
- Optionally add your MQTT server details (host:port, user/pass, topic prefix from BamBuddy settings)
- Turn on Debug Logging and check the logs, turn off when everything is working