Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 2 KB

info.md

File metadata and controls

53 lines (42 loc) · 2 KB

Duet3D integration for Home Assistant

This is a work in progress. Entities are created properly and values can be read from the rr_model (standalone) or /machine/status (SBC) endpoint of your Duet board. The integration is meant to use with RRF 3.4.5 and onwards. Ensure to select the correct mode (Standalone vs SBC)

Installation

From HACS

  1. Install HACS if you haven't already (see installation guide).
  2. Add custom repository https://github.com/lyr3x/hass-Duet3D as "Integration" in the settings tab of HACS.
  3. Find and install "Duet3D" integration in HACS's "Integrations" tab.
  4. Restart your Home Assistant.

Manual

  1. Download and unzip the repo archive. (You could also click "Download ZIP" after pressing the green button in the repo, alternatively, you could clone the repo from SSH add-on).
  2. Copy contents of the archive/repo into your /config directory.
  3. Restart your Home Assistant.

Config

Add the Duet3D Printer integration via the UI.

Add the following to your Lovelace dashboard. Remember to update the entity names with those of your own printer (defined by the value of duet3d-name)

- card:
    cards:
      - type: glance
        entities:
          - entity: sensor.<name>_current_toolbed_temp
            name: Bed
          - entity: sensor.<name>_current_tool1_temp
            name: Tool
          - entity: sensor.<name>_current_state
            name: Status
    type: horizontal-stack
  conditions:
    - entity: switch.<name>
      state: 'on'
  type: conditional

There is also the possibility to send GCodes directly with a Home Assistant service:

service: duet3d.hevors_send_gcode
data:
  gcode: G28

Currently is not working to log the responsen from an e.g M122

Credits

Code initially based on the OctoPrint integration: octoprint integration github