Closed Ben-in-Chicago closed 1 month ago
Seems like it's having trouble generating a UID for the bitaxe. Can never remember how those are generated, but it will be missing some piece of info.
Seems like it's having trouble generating a UID for the bitaxe. Can never remember how those are generated, but it will be missing some piece of info.
I have another bitaxe which it does recognize / works. Unsure if that matters.
It's generating it by MAC address, it seems like I don't have a way to get the MAC for the bitaxes.
Seems like it's having trouble generating a UID for the bitaxe. Can never remember how those are generated, but it will be missing some piece of info.
I have another bitaxe which it does recognize / works. Unsure if that matters.
This is the issue, it's using None instead of the MAC, so when you add 2 it uses None for the UID and they overlap.
Seems like it's having trouble generating a UID for the bitaxe. Can never remember how those are generated, but it will be missing some piece of info.
I have another bitaxe which it does recognize / works. Unsure if that matters.
This is the issue, it's using None instead of the MAC, so when you add 2 it uses None for the UID and they overlap.
OK, thanks! And to confirm, there isn't anything I can configure in the background to update?
I don't think so. I have to do some testing, it's a real pain to generate those UIDs when things aren't standardized...
Thank you! I appreciate your help! Please let me know if there is anything that I can do to assist.
Using the IP address as unique id could a fix, couldn't it? It's not part of the api - but it is indeed part of the setup.
Using the IP address as unique id could a fix, couldn't it? It's not part of the api - but it is indeed part of the setup.
This could fix it temporarily, but it is explicitly disallowed by home assistant - https://developers.home-assistant.io/docs/config_entries_config_flow_handler?_highlight=unique#unacceptable-sources-for-a-unique-id
The reason for this is that the unique ID should not change for the same device, and with DHCP, that IP could change at any time. Integrations like this cannot expect that the user has set up their network in such a way that would solve this issue, thus, home assistant says no.
I've been trying to follow your progress on getting this setup!
Ok, it is finally merged into ESP-Miner, so now we just have to wait for them to put out a version and I will get this added.
Ok, it is finally merged into ESP-Miner, so now we just have to wait for them to put out a version and I will get this added.
Thanks for your contribution - it's greatly appreciated!
The changes were released in this version of ESP-Miner
The changes were released in this version of ESP-Miner
Awesome. Fixed in 2.3.0 of ESPMiner, if you update your bitaxe it should work now!
The changes were released in this version of ESP-Miner
Awesome. Fixed in 2.3.0 of ESPMiner, if you update your bitaxe it should work now!
What about other miners that might be running Braiins OS, for example? Edit: nvm
The changes were released in this version of ESP-Miner
Awesome. Fixed in 2.3.0 of ESPMiner, if you update your bitaxe it should work now!
Hey @b-rowan I've updated two different miners with the latest ESP-miner. I can see the MAC addresses for both via the web UI at the devices' respective IP addresses. HomeAssistant is still generating that "no unique ID" error after I downgraded to ha core version 2024.9.3.
HomeAssistant is still generating that "no unique ID" error after I downgraded to ha core version 2024.9.3.
You may have to remove and re-add the devices?
After checking, it seems I never added it in pyasic. I'll get that fixed shortly.
HomeAssistant is still generating that "no unique ID" error after I downgraded to ha core version 2024.9.3.
You may have to remove and re-add the devices?
Tried re-adding, it seems to want a web username/password which I don't have or can recall setting up.
Ok, in pyasic as of 0.60.10, and I released a version here 1.1.16, which updates to that, and should also make that web user optional.
Your update worked! I'm able to view each device separately now - thank you!
Version of the custom_component
VERSION_STORAGE = "6" STORENAME = "hacs"
Configuration
Describe the bug
Miner data for a specific miner is not being returned (as entities) and the miner (device) is not showing although it shows in the logs. When reviewing the logs, it appears an unique ID is needed, but unsure how to provide/resolve.
Debug log