home-assistant.io/source/_components/octoprint.markdown
Jeppe Ladefoged c194908626 Added camera (#6437)
Added info on how to add a web camera.
2018-10-02 18:10:00 +02:00

1.4 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, featured, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category featured ha_release ha_iot_class
page OctoPrint Instructions on how to setup the OctoPrint in Home Assistant. 2015-01-20 22:36 true false true true octoprint.png Hub false 0.19 Local Polling

OctoPrint is a web interface for your 3D printer. This is the main component to integrate OctoPrint sensors, you will have to setup sensors and binary sensors separately.

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 configuration.yaml.

octoprint:
  host: YOUR_OCTOPRINT_HOST
  api_key: YOUR_API_KEY
  bed: false
  number_of_tools: 1

Configuration variables:

  • host (Required): IP address or hostname of Octoprint host.
  • api_key (Required): The retrieved api key.
  • bed (Optional): If the printer has a heated bed.
  • number_of_tools (Optional): Number of temperature adjustable tools. i.e. nozzle.

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