hass-miner
hass-miner copied to clipboard
[Feature Request] Add restart_backend from pyasic as ha service
I use hass-miner mainly to control my Miner with Braiins Firmware (BOS) to make use of my excess Solar Energy, which works great so far. Thanks for the great ha integration.
My Problem is as follows: I monitor the hashrate and pause and resume the miner if the hashrate drops below e certain level.
Sometime pause and resume does not restart the mining process, when the pool is "dead" according to BOS:
To fix this situation, a restart of bosminer is required, but that is currently not possible via hass-miner. It would be nice to make restart_backend()
from pyasic available as a ha service for example, to fix this problem (https://docs.pyasic.org/en/latest/miners/functions/#pyasic.miners.base.MinerProtocol.restart_backend).
Additionally, having the pool status available in HA would be awesome, but also cumbersome?