A Home Assistant integration to track your Nicehash rigs.
- Access HACS: Open Home Assistant and click on HACS in the sidebar.
- Go to Integrations: Navigate to the Integrations tab.
- Add Custom Repository: Click on the menu in the top right corner (three vertical dots), then select Custom Repositories.
- Enter Details: In the new window, you need to input the necessary information about the custom integration you want to add
- Add custom repository URL: Paste the URL of the repository you want to add.
- Select category: Choose 'Integration' from the category dropdown menu.
- Add: Click the Add button to confirm. This action should add the custom integration to HACS.
- Select "+ Explore & Download Repositories" and search for "NiceHash Api"
- Select "NiceHash Api" and "Download this repository with HACS"
- Once downloaded, go to settings, then devices and services
- Click on add intergration and search for 'NiceHash Api'
You'll need to create an API key in NiceHash for this integration to work:
-
head over to your NiceHash account settings
-
Go into the API Keys menu
-
In this menu at the top, you'll find your Organisation ID which is required to later setup the integration in Home-Assistant
-
click
CREATE NEW API KEY
-
This will present you with this popup:
-
⚠️ Make sure you configure it like the above picture (DO NOT ENABLE ANY OF THE OTHER SETTINGS, this is at your own risk) -
Click on
GENERATE API KEY
-
This will give you 2 strings, note them down, you can't retrieve them later on:
- The Key
- The Secret
-
Validate the popup and enable the API Key (it will be through email)
Once that is done, head over to Home-Assistant and add the integration from the integration menu:
- Key and Secret: This is the key/secret you retrieved from the API Key creation
- Org ID: This is the Organization ID
- You're all set