This repository contains an adapted Home Assistant configuration for monitoring BitAxe compatible miners. The files and structure match your local setup:
configuration.yaml— Template sensors (total hashrate, power, uptime, acceptance/rejection rates, etc.).miner.yaml— REST sensors for each miner (NerdQAxe, NerdAxe, Supra, Gamma) and pool REST endpoints (CKPool, Satoshiradio).secrets.yaml— IP addresses and pool/wallet secrets (referenced with!secretinminer.yaml).
This README explains installation, customization and common troubleshooting steps targeted to these files.
- Backup: Make a backup copy of your Home Assistant
configfolder. - Copy files: Copy
configuration.yaml,miner.yamlandsecrets.yamlinto your Home Assistant config directory. If you already haveconfiguration.yaml, include only the appropriate sections or use!include. - Secrets: Edit
secrets.yamland set your miner IPs and wallet address. Example:
nerdqaxe_ip: "http://192.168.178.58/api/system/info"
wallet_address: "bc1q..."
ckpool_resource: "https://eusolo.ckpool.org/users/bc1q..."- Check: In Home Assistant → Settings → System → Server Controls → Check Configuration.
- Restart: If the check succeeds, restart Home Assistant.
-
miner.yaml- Contains
rest:blocks per miner. Each block queries the miner API (/api/system/info) and defines multiplesensor:entries. - Each sensor has a
unique_id(e.g.nerdqaxe_hashrate) — important for stable Entity Registry entries. - Pool sections: CKPool user stats and pool stats are present. CKPool
pool.statusreturns three JSON lines — templates parse this usingvalue.splitlines()+from_json.
- Contains
-
configuration.yaml(Template sensors)- Aggregates miner REST sensors into totals (Total Power, Total Hashrate, Efficiency W/TH, Uptime, Overheat count).
- Includes Acceptance/Reject Rate sensors for NerdQAxe, NerdAxe, Supra, Gamma, CKPool and Satoshiradio.
- All template sensors now include
unique_idand human-friendlynamefields.
- Removing a miner: If you remove a miner, also remove the corresponding
restblock inminer.yamland adjust or comment out the template sensors inconfiguration.yaml. - Units: Pool hashrates are reported in different units (GH/s, TH/s, PH/s). Templates convert where necessary — adjust if you prefer different display units.
-
Check Configurationerrors:- Template errors: Copy the failing template into Developer Tools → Template and iterate until it produces the expected result.
- REST timeouts: Verify the miner IPs and firewall settings, and test the URL (
/api/system/info) from the Home Assistant host.
-
Missing sensors:
- Verify
secrets.yamlhas correct IPs and pool URLs - Check Home Assistant logs for REST or template error messages
- Verify
- Naming convention: The files use
unique_idprefixes likebitaxe_,nerdqaxe_, andckpool_. Adjust these if you want a different naming scheme.
Short: main files are configuration.yaml, miner.yaml and secrets.yaml. Put your miner IPs and wallet in secrets.yaml, check configuration in HA and restart.