OctoPrint is a web interface for your 3D printer. This is the main integration to integrate OctoPrint sensors.
There is currently support for the following device types within Home Assistant:
To get started with the OctoPrint API, please follow the directions on their site. Once OctoPrint is configured you will need to add your API key and host to your
octoprint: host: YOUR_OCTOPRINT_HOST api_key: YOUR_API_KEY
The name for this printer, must be unique if multiple printers are defined.
Number of temperature adjustable tools, e.g., nozzle.
Configuration for the sensors.
The sensors to activate.
Temperatures of all available tools, e.g.,
print bed, etc. These will be displayed as
toolN please refer to your OctoPrint frontend to associate the tool number with an actual device.
If you are tracking temperature it is recommended to set
number_of_tools in your octoprint configuration. This will allow the octoprint sensors to load if the printer is offline during Home Assistant startup.
Example with multiple printers:
octoprint: - host: YOUR_OCTOPRINT_HOST api_key: YOUR_API_KEY name: PRINTER_NAME_1 number_of_tools: 2 sensors: monitored_conditions: - 'Current State' - 'Job Percentage' - host: YOUR_OCTOPRINT_HOST api_key: YOUR_API_KEY name: PRINTER_NAME_2 number_of_tools: 1
If the OctoPrint host is equipped with a web camera it is possible to add this as well.
camera: - platform: mjpeg name: OctoPrint still_image_url: http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=snapshot mjpeg_url: http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=stream
octoprint binary sensor platform let you monitor if your 3D printer is printing or if there was a printing error.
To set it up, add the following information to your
binary_sensor: - platform: octoprint monitored_conditions: - Printing - Printing Error
octoprint sensor platform let you monitor various states of your 3D printer and its print jobs.
Suggest an edit to this page, or provide/view feedback for this page.