Code Based on the OctoPrint integration from Hass: octoprint integration github
This is a work in progress, the code is working but there is still lots to do
- Install HACS if you haven't already (see installation guide).
- Add custom repository
https://github.com/garethbradley/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.
The following configuration is taken from the excellent article: Getting started with Duet Wifi, RepRapFirmware, and Home Assistant.
Add the following config to the /config/configuration.yaml
file:
# Duet Integration
duet3d_printer:
host: !secret duet3d-host
name: !secret duet3d-name
number_of_tools: 1
bed: true
sensors:
monitored_conditions:
- 'Current State'
- 'Temperatures'
- 'Job Percentage'
- 'Time Elapsed'
- 'Time Remaining'
- 'Position'
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.blv_mgn_cube_current_toolbed_temp
name: Bed
- entity: sensor.blv_mgn_cube_current_tool1_temp
name: Tool
- entity: sensor.blv_mgn_cube_current_state
name: Status
type: horizontal-stack
conditions:
- entity: switch.blv_mgn_cube
state: 'on'
type: conditional