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)
- Install HACS if you haven't already (see installation guide).
- Add custom repository
https://github.com/lyr3x/hass-Duet3D
as "Integration" in the settings tab of HACS. - Find and install "Duet3D" integration in HACS's "Integrations" tab.
- Restart your Home Assistant.
- 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).
- Copy contents of the archive/repo into your
/config
directory. - Restart your Home Assistant.
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
Code initially based on the OctoPrint integration: octoprint integration github