2022-02-14 14:48:01 +01:00

2.2 KiB

title, description, ha_category, ha_config_flow, ha_release, ha_codeowners, ha_iot_class, ha_domain, ha_zeroconf, ha_ssdp, ha_platforms
title description ha_category ha_config_flow ha_release ha_codeowners ha_iot_class ha_domain ha_zeroconf ha_ssdp ha_platforms
OctoPrint Integration between OctoPrint and Home Assistant.
Binary Sensor
Button
Sensor
true 0.19
@rfleming71
Local Polling octoprint true true
binary_sensor
button
sensor

OctoPrint is a web interface for your 3D printer. This is the main integration to integrate OctoPrint sensors.

{% include integrations/config_flow.md %}

{% configuration_basic %} username: description: Username for the server. required: true type: string host: description: Address of the server, e.g., 192.168.1.32. required: true type: string port: description: Port of the server. required: false type: string default: 80 path: description: URL path of the server required: false type: string default: / ssl: description: Whether to use SSL or not when communicating. required: false type: boolean default: false verify ssl: description: Should the SSL certificate be validated. required: false type: boolean default: false {% endconfiguration_basic %}

API Key

For the integration to work, please check that the plugin Discovery is enabled. The Octoprint integration will attempt to register itself via the application keys plugin. After submitting the configuration UI in Home Assistant, open the Octoprint UI and click allow on the prompt.

Binary Sensor

The OctoPrint integration provides the following binary sensors:

  • Printing
  • Print Error

Sensor

The OctoPrint integration lets you monitor various states of your 3D printer and its print jobs. Supported sensors:

  • Current Printer State
  • Job Completed Percentage
  • Estimated Finish Time
  • Estimated Start Time

Camera

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

Buttons

The OctoPrint integration provides the following buttons.

  • Pause Job
  • Resume Job
  • Stop Job