You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
It would be nice to see in Home Assistant along side each of the respectively hash cards other details like the Tuner Status. perhaps Pool status
Describe alternatives you've considered
I believe the option is available in pyasic
new versions of BraiinsOS+ (post-gRPC)
Source code pyasic/miners/backends/braiins_os.py
if rpc_tunerstatus is not None:
errors = []
try:
chain_status = rpc_tunerstatus["TUNERSTATUS"][0]["TunerChainStatus"]
if chain_status and len(chain_status) > 0:
offset = (
6 if int(chain_status[0]["HashchainIndex"]) in [6, 7, 8] else 0
)
for board in chain_status:
_id = board["HashchainIndex"] - offset
if board["Status"] not in [
"Stable",
"Testing performance profile",
"Tuning individual chips",
]:
_error = board["Status"].split(" {")[0]
_error = _error[0].lower() + _error[1:]
errors.append(BraiinsOSError(f"Slot {_id} {_error}"))
return errors
old versions of BraiinsOS+ (pre-gRPC)
Source code in pyasic/miners/backends/braiins_os.py
if rpc_tunerstatus is not None:
errors = []
try:
chain_status = rpc_tunerstatus["TUNERSTATUS"][0]["TunerChainStatus"]
if chain_status and len(chain_status) > 0:
offset = (
6 if int(chain_status[0]["HashchainIndex"]) in [6, 7, 8] else 0
)
for board in chain_status:
_id = board["HashchainIndex"] - offset
if board["Status"] not in [
"Stable",
"Testing performance profile",
"Tuning individual chips",
]:
_error = board["Status"].split(" {")[0]
_error = _error[0].lower() + _error[1:]
errors.append(BraiinsOSError(f"Slot {_id} {_error}"))
return errors
linux cli.
echo -n "stats" | nc IP_OF_MINER_GOES_HERE 4028
and
echo -n "pools" | nc IP_OF_MINER_GOES_HERE 4028
Additional context
Thanks. Really enjoy being able to automate with the currently available triggers. Great granular options would be enabled with some additional visibility.
The text was updated successfully, but these errors were encountered:
The biggest issue with this is that I'm not sure the best way to display text based data on the HASS interface. You can imagine that it could get clunky, and it's not feasible to create separate entities for each "error" as they happen. I would love to understand why you want the error codes in this case, as I believe it would be much easier to automate something based off board hashrate which is already available, but there may be a use case I'm missing here.
Describe the solution you'd like
It would be nice to see in Home Assistant along side each of the respectively hash cards other details like the Tuner Status. perhaps Pool status
Describe alternatives you've considered
I believe the option is available in pyasic
new versions of BraiinsOS+ (post-gRPC)
Source code
pyasic/miners/backends/braiins_os.py
old versions of BraiinsOS+ (pre-gRPC)
Source code in
pyasic/miners/backends/braiins_os.py
linux cli.
echo -n "stats" | nc IP_OF_MINER_GOES_HERE 4028
and
echo -n "pools" | nc IP_OF_MINER_GOES_HERE 4028
Additional context
Thanks. Really enjoy being able to automate with the currently available triggers. Great granular options would be enabled with some additional visibility.
The text was updated successfully, but these errors were encountered: