Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving from rr_status to rr_model and a ton of other things #1

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

Code Based on the OctoPrint integration from Hass: [octoprint integration github](https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/octoprint)

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](https://hacs.netlify.com/docs/installation/manual)).
2. Add custom repository `https://github.com/garethbradley/hass-Duet3D` as "Integration" in the settings tab of HACS.
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](https://github.com/garethbradley/hass-Duet3D/archive/master.zip). (You could also click "Download ZIP" after pressing the green button in the repo, alternatively, you could clone the repo from SSH add-on).
1. Download and unzip the [repo archive](https://github.com/DJGummikuh/hass-Duet3D/archive/master.zip). (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.

Expand All @@ -27,8 +29,8 @@ Add the following config to the `/config/configuration.yaml` file:
```yaml
# Duet Integration
duet3d_printer:
host: !secret duet3d-host
name: !secret duet3d-name
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:
Expand All @@ -38,7 +40,10 @@ duet3d_printer:
- '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`)
Expand All @@ -47,15 +52,15 @@ Add the following to your Lovelace dashboard. Remember to update the entity name
cards:
- type: glance
entities:
- entity: sensor.blv_mgn_cube_current_toolbed_temp
- entity: sensor.<your-printer-name>_current_toolbed_temp
name: Bed
- entity: sensor.blv_mgn_cube_current_tool1_temp
- entity: sensor.<your-printer-name>_current_tool1_temp
name: Tool
- entity: sensor.blv_mgn_cube_current_state
- entity: sensor.<your-printer-name>_current_state
name: Status
type: horizontal-stack
conditions:
- entity: switch.blv_mgn_cube
- entity: switch.<your-printer-name>
state: 'on'
type: conditional
```
```
Loading