8000 GitHub - DJGummikuh/hass-Duet3D: Home Assistant Duet3D custom integration
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DJGummikuh/hass-Duet3D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Duet3D integration for Home Assistant

Code Based on the OctoPrint integration from Hass: octoprint integration github

I forked from https://github.com/garethbradley/hass-Duet3D because his version uses a soon-to-be deprecated API endpoint /rr_status instead of /rr_model

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/DJGummikuh/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: <hostname or IP address of your printer, e.g. 192.168.1.100>
  name: <name the printer should have in Home Assistant, e.g. My Printer>
  number_of_tools: 1
  bed: true
  sensors:
    monitored_conditions:
      - 'Current State'
      - 'Temperatures'
      - 'Job Percentage'
      - 'Time Elapsed'
      - 'Time Remaining'
      - 'Job Name'
      - 'Position'
      - 'Filament Amount'
      - 'Filament Used'

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.<your-printer-name>_current_toolbed_temp
            name: Bed
          - entity: sensor.<your-printer-name>_current_tool1_temp
            name: Tool
          - entity: sensor.<your-printer-name>_current_state
            name: Status
    type: horizontal-stack
  conditions:
    - entity: switch.<your-printer-name>
      state: 'on'
  type: conditional

About

Home Assistant Duet3D custom integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0