hass-miner icon indicating copy to clipboard operation
hass-miner copied to clipboard

[Feature Request] Add restart_backend from pyasic as ha service

Open pixeldoc2000 opened this issue 8 months ago • 21 comments

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: grafik

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?

pixeldoc2000 avatar Jun 21 '24 14:06 pixeldoc2000