GithubHelp home page GithubHelp logo

hass-duet3d's Introduction

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

hass-duet3d's People

Contributors

djgummikuh avatar garethbradley avatar irgusite avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.