Skip to content

The NiceHash API Integration for Home Assistant provides real-time monitoring of your cryptocurrency mining. It tracks mining status, profitability, balance, and individual worker details. It also supports personalized alerts and scheduling for optimal mining operations.

License

Notifications You must be signed in to change notification settings

MorneSaunders360/nh_nicehash

Repository files navigation

NiceHash Api hacs_badge

A Home Assistant integration to track your Nicehash rigs.

image

HACS Install

  1. Access HACS: Open Home Assistant and click on HACS in the sidebar.
  2. Go to Integrations: Navigate to the Integrations tab.
  3. Add Custom Repository: Click on the menu in the top right corner (three vertical dots), then select Custom Repositories.
  4. Enter Details: In the new window, you need to input the necessary information about the custom integration you want to add
  5. Add custom repository URL: Paste the URL of the repository you want to add.
  6. Select category: Choose 'Integration' from the category dropdown menu.
  7. Add: Click the Add button to confirm. This action should add the custom integration to HACS.
  8. Select "+ Explore & Download Repositories" and search for "NiceHash Api"
  9. Select "NiceHash Api" and "Download this repository with HACS"
  10. Once downloaded, go to settings, then devices and services
  11. Click on add intergration and search for 'NiceHash Api'

Enabling the integration

Setup the API Key

You'll need to create an API key in NiceHash for this integration to work:

  1. head over to your NiceHash account settings

  2. Go into the API Keys menu

  3. In this menu at the top, you'll find your Organisation ID which is required to later setup the integration in Home-Assistant

    org_id

  4. click CREATE NEW API KEY

  5. This will present you with this popup:

    api_config

  6. ⚠️ Make sure you configure it like the above picture (DO NOT ENABLE ANY OF THE OTHER SETTINGS, this is at your own risk)

  7. Click on GENERATE API KEY

  8. This will give you 2 strings, note them down, you can't retrieve them later on:

    • The Key
    • The Secret
  9. Validate the popup and enable the API Key (it will be through email)

Setup Home Assistant

Once that is done, head over to Home-Assistant and add the integration from the integration menu:

  1. Key and Secret: This is the key/secret you retrieved from the API Key creation
  2. Org ID: This is the Organization ID
  3. You're all set

About

The NiceHash API Integration for Home Assistant provides real-time monitoring of your cryptocurrency mining. It tracks mining status, profitability, balance, and individual worker details. It also supports personalized alerts and scheduling for optimal mining operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages