Skip to content

Home Assistant Duet3D custom integration

Notifications You must be signed in to change notification settings

garethbradley/hass-Duet3D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Duet3D integration for Home Assistant

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

Installation

From HACS

  1. Install HACS if you haven't already (see installation guide).
  2. Add custom repository https://github.com/garethbradley/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

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

About

Home Assistant Duet3D custom integration

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%