{"id":16792773,"url":"https://github.com/romrider/ha_nicehash","last_synced_at":"2025-03-22T01:30:39.459Z","repository":{"id":44772376,"uuid":"340605952","full_name":"RomRider/ha_nicehash","owner":"RomRider","description":"💵 Custom NiceHash integration for Home-Assistant","archived":false,"fork":false,"pushed_at":"2023-11-06T18:52:46.000Z","size":103,"stargazers_count":36,"open_issues_count":12,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T06:51:24.262Z","etag":null,"topics":["custom-integration","home-assistant","nicehash"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RomRider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-20T08:46:22.000Z","updated_at":"2024-10-11T10:25:06.000Z","dependencies_parsed_at":"2024-10-28T12:17:59.457Z","dependency_job_id":"20a40f17-b3d5-4043-ba51-885d7fcdad93","html_url":"https://github.com/RomRider/ha_nicehash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomRider%2Fha_nicehash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomRider%2Fha_nicehash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomRider%2Fha_nicehash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomRider%2Fha_nicehash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomRider","download_url":"https://codeload.github.com/RomRider/ha_nicehash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893318,"owners_count":20527572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-integration","home-assistant","nicehash"],"created_at":"2024-10-13T08:47:04.339Z","updated_at":"2025-03-22T01:30:39.453Z","avatar_url":"https://github.com/RomRider.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NiceHash custom integration by @RomRider\n\nThis is a custom integration for [NiceHash](https://www.nicehash.com).\n\n![logo](docs/logo.png)\n\nIt will enable you to collect:\n* Your accounts statistics\n  * balance\n  * profitability\n  * local profitability\n  * unpaid amount\n* Your rigs statistics\n  * Accepted Hash rate\n  * Rejected Hash rate\n  * Profitability\n  * Local Profitability\n\nAll the values which represent a BTC amount generate 2 sensors:\n* one in BTC\n* one in the currency you selected during the setup (conversion rate if provided by NiceHash)\n\n## Installation\n\n### HACS (prefered)\n\n1. Add this repository to HACS as an integration: https://github.com/RomRider/ha_nicehash\n1. Install the integration\n1. Restart your instance\n\n### Manual\n\n1. Copy the content of `custom_components/nicehash` into your `custom_components/nicehash folder`.\n1. Restart your instance\n\n## Enabling the integration\n\n### Setup the API Key\n\nYou'll need to create an API key in NiceHash for this integration to work:\n1. head over to your NiceHash account settings\n1. Go into the API Keys menu\n1. In this menu at the top, you'll find your Organisation ID which is required to later setup the integration in Home-Assistant\n\n   ![org_id](docs/org_id.png)\n\n1. click `CREATE NEW API KEY`\n1. This will present you with this popup:\n\n   ![api_config](docs/api_setup.png)\n\n1. :warning: Make sure you configure it like the above picture (**DO NOT ENABLE ANY OF THE OTHER SETTINGS**, this is at your own risk)\n1. Click on `GENERATE API KEY`\n1. This will give you 2 strings, note them down, you can't retrieve them later on:\n\n   * The Key\n   * The Secret\n\n1. Validate the popup and enable the API Key (it will be through email)\n\n### Setup Home Assistant\n\nOnce that is done, head over to Home-Assistant and add the integration from the integration menu:\n\n![integration](docs/integration.png)\n\n1. Name: Give a name to your integration (it will also be used as part of some sensors)\n1. Key and Secret: This is the key/secret you retrieved from the API Key creation\n1. Org ID: This is the Organization ID\n1. Currency Trigam: This is the trigram of the currency the BTC amount will be converted to (both sensors will exist, BTC and the selected currency)\n1. You're all set :tada:\n\n## Adding to your interface\n\nIt is best to use [apexcharts-card](https://github.com/RomRider/apexcharts-card) (more flexibility) or [mini-graph-card](https://github.com/kalkih/mini-graph-card) (less flexibility) to display the data from those sensors.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromrider%2Fha_nicehash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromrider%2Fha_nicehash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromrider%2Fha_nicehash/lists"}