A Home Assistant card for 3D printers using OctoPrint

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

If there were a Venn diagram of the 3D printing and Home Assistant community, the overlap would likely be rather large. Many DIY projects, such as those created using ESPHome, wouldn't be complete without a perfectly sized, 3D-printed enclosure. And I'm sure you will find many who run Home Assistant on a Raspberry Pi have 3D-printed the case for that too.

It's no surprise then that OctoPrint, which is an application many owners of 3D printers use, has been integrated with Home Assistant since version 0.19. What is a surprise though is that it took until now for OctoPrint to get its very own custom-made Lovelace card.

Contents

One user's solution is a benefit to all

With that in mind, Daniel Greco on GitHub has taken the task of adding the missing piece of the puzzle to Home Assistant. They have and has created a beautiful Lovelace card for any 3D printer that OctoPrint monitors and controls, to be displayed in the Home Assistant dashboard. This card goes by the name threedy.

An ESPHome project makes use of 3D printing. The chassis of this DIY video doorbell is 3D printed.
This ESPHome-powered doorbell uses a 3D-printed enclosure

What is OctoPrint?

A bit of background for those of us that don't own a 3D printer (unfortunately, I'm included in that group): OctoPrint is a web interface for 3D printers. It is open source and supports just about every 3D printer out there. While OctoPrint can run on numerous systems, most users use a cheap Raspberry Pi for it to run on.

A 3D printer controller

Most 3D printers have an integrated display from which you control and monitor everything. But that is where it ends. The 3D printer does not connect to your network out of the box. By using OctoPrint, you can control and monitor every aspect of your 3D printer and any printing jobs right from within your browser.

OctoPrint allows you to actually monitor the physical 3D printer without moving away from your desk. And not just by displaying a series of numbers. You can attach a USB webcam to the Raspberry Pi it is running on and have the video streamed to the web interface. You can even integrate the camera image in to your Lovelace dashboard.

How to install the OctoPrint card for Home Assistant

Please be aware that the OctoPrint card for Home Assistant is still in the alpha stage of development. As such, you won't be able to install this Lovelace card using HACS just yet. Despite its pleasing design and usefulness, it is also unlikely that this card will never become an officially supported card. That is because the Home Assistant developers don't accept cards tied to specific integrations, which is understandable because there are many cards that only serve one purpose.

Without any support for HACS, you will have to manually install the OctoPrint card for Home Assistant. Though this only includes adding a file to your Home Assistant's www folder and adding it to the resource section of Lovelace, you are responsible for checking the repository for updates. If you're patient, the presence of a file named [hacs.json](https://github.com/dangreco/threedy#method-2-manual) does indicate that it will be added to the community store sooner rather than later.

A screenshot of a custom card for the Home Assistant Dashboard. Showing is an illustration of a 3D printer along with details on its progress, status, temperature, and ETA.
A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Leave a comment

Share to...