A Home Assistant card for 3D printers using OctoPrint

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

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.

An ESPHome project that uses a 3D-printed enclosure
This ESPHome-powered doorbell uses a 3D-printed enclosure

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.

Advertisement

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.

Table of Contents

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.

Advertisement
Creality Ender 3 V2

  • Silent 32-bit motherboard: Ensures smooth movement under 50 dB
  • UL Meanwell Power Supply: Meets all the needs of fast heating and long-time printing
  • Carborundum glass platform: Enables the hotbed to heat quicker and prints to adhere better, ultra smoothness even on the first layer

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.

A 3D printer controller that doesn't use OctoPrint
A 3D printer controller that doesn’t use OctoPrint

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.

Advertisement

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.

The threedy card for OctoPrint in Home Assistant

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 in charge of checking the repository for updates. If you’re patient, the presence of a file named hacs.json does indicate that it will be added to the community store sooner rather than later.

Advertisement

Interested in purchasing a 3D printer?

This card alone has made me want a 3D of my own even more. You must admit, it is a beautiful-looking card! If you’re interested in purchasing a 3D printer yourself, please consider using an affiliate link below. While you don’t pay anything extra for the product, I get a cut of the sale (which might make it possible for me to one day own one). Take a look at some best-selling 3D printers on Amazon:

How to replace Home Assistant’s default shopping list with Bring!

Track iPhones in room-assistant using Bluetooth Low Energy

Advertisement
Liam Alexander Colman, the author and maintainer of Home Assistant Guides.

About Liam Alexander Colman

Liam Alexander Colman has been using Home Assistant for various projects for quite some time. What started of with a Raspberry Pi quickly became three Raspberry Pis and eventually a full-blown server. I now use Unraid as my operating system, and Home Assistant happily runs in a Docker container. My personal setup includes many Zigbee devices as well as integrations with existing products such as my Android TV box. Read on to find out more on how I got started with Home Assistant.

Leave a comment

Advertisement