Schnitzel / hass-miner

Controll your Bitcoin miner from Home Assistant
MIT License
56 stars 18 forks source link

Disable Boards #327

Open soki2001 opened 7 months ago

soki2001 commented 7 months ago

Have you think on include an option to disable boards.

In order to reduce more the power used should be a great feature disable boards.

b-rowan commented 7 months ago

Interesting idea. I would like to have it in pyasic, but I actually don't think this is a good idea for this specific project. My reasoning is that people are using this generally to automate their machines, and you essentially have 3 states. Those states are:

  1. High power, where the machine is set to a high setpoint, usually at times of low power cost,
  2. Low power, where the machine is set to a low power mode to target high efficiency, usually in times of medium or high power cost,
  3. Sleep, where the miner is shut down, either with a smart plug or via the integration, usually in times of high power cost.

In essence, what you are asking for is a subset of 2. However, there are no efficiency gains to be had from shutting down boards, only power reduction. Therefore, you should either:

  1. Use all 3 boards at the same efficiency, as you will get the same power usage to hashrate ratio,
  2. Shut the miner off altogether if your power cost is too high,
  3. Physically remove boards from the machine if you want a generally lower power usage.

This is why I generally think that there is no reason for this in hass-miner, as it seems to me to be unneeded complexity. It may be added far into the future, but the biggest issue with adding this other than opinion is that the core feature is missing from pyasic, which is used to do all the miner handling, and this is a quite large feature to implement.

@Schnitzel would love to hear your opinion on this, my personal opinion is NACK for the reasons above.

Chris-S44 commented 7 months ago

I was just about to ask for this feature and I see it's been requested already. Reason I would like it is the lowest I can set my miner is 1677W. I run only from solar and batteries. On a cloudy day I need to run at around 1000W. Being able to disable 1 hash board remotely or with an automation would be a great addition.

b-rowan commented 7 months ago

I was just about to ask for this feature and I see it's been requested already.

Reason I would like it is the lowest I can set my miner is 1677W. I run only from solar and batteries. On a cloudy day I need to run at around 1000W. Being able to disable 1 hash board remotely or with an automation would be a great addition.

Good point. That's a case I missed.

I can give this a shot, but again, it has to be implemented in pyasic first, and I'm not sure what level of complexity this will entail, but I think doing it for braiins OS devices should be a start.

Schnitzel commented 7 months ago

yea from my side I feel the same: While it seems to be an edge case, specifically for cases were a miner wants to use a specific Wattage amount (like the example of 1000W) unfortunately its only possible to do this with disabling some hashboards. I myself use an S19J to heat my garage and during the day I run it with only one hashboard which reduces also the noise output.

I would suggest thought that pyasic just focuses on the enable/disable of the hashboards, I do NOT think there is any need for pyasic to automatically do the Watt to Hashboard calculation (like if you tell pyasic to run at 1000W it automatically turns of 1 hashboard and lets the remaining 2 running at 500W).

soki2001 commented 7 months ago

In my case I have solar power and 2 rigs and 3 asics.

I discovered this integration recently and for me is the best thing that I have sice I started to mine around 10 years ago but smart plugs.

I have a node red flow to controls the power export to the company.

I can't export more than 5Kw and I have installed 13Kw and Batteries.

1.- During the day I have all devices mining but and I modify the asics to avoid export more than 4500W to the company, 200W by 200W, I mean, More than 4500W export, modify the power limit on 200W up... after 15 mins continues more than 4500W 200W more... if the power export is less than 3000W then go down 200W

2.- During the night I use at minimum the asics and only star to shutdown if I have more than 3Kw from Battery or the Battery arrives to 50%.

3.- of course if the power activate is off and the flow send again the signal to power activate off then I switch off the smart plugs.

For me it would be incredible to have the possibility to reduce the power by switching off hashboards because that means I could mining more time during the night and cloudy days.

El jue, 29 feb 2024 a las 14:32, Michael Schmid @.***>) escribió:

yea from my side I feel the same: While it seems to be an edge case, specifically for cases were a miner wants to use a specific Wattage amount (like the example of 1000W) unfortunately its only possible to do this with disabling some hashboards. I myself use an S19J to heat my garage and during the day I run it with only one hashboard which reduces also the noise output.

I would suggest thought that pyasic just focuses on the enable/disable of the hashboards, I do NOT think there is any need for pyasic to automatically do the Watt to Hashboard calculation (like if you tell pyasic to run at 1000W it automatically turns of 1 hashboard and lets the remaining 2 running at 500W).

— Reply to this email directly, view it on GitHub https://github.com/Schnitzel/hass-miner/issues/327#issuecomment-1971154722, or unsubscribe https://github.com/notifications/unsubscribe-auth/APE6DBOLYOJGFM7GPJWLZMTYV4WYDAVCNFSM6AAAAABD2KYZECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGE2TINZSGI . You are receiving this because you authored the thread.Message ID: @.***>

b-rowan commented 7 months ago

I would suggest thought that pyasic just focuses on the enable/disable of the hashboards, I do NOT think there is any need for pyasic to automatically do the Watt to Hashboard calculation (like if you tell pyasic to run at 1000W it automatically turns of 1 hashboard and lets the remaining 2 running at 500W).

Technically this is actually a point I would like to get to in the future, as it is useful on my side of things to be able to do this for phase balancing purposes. I will play around with it and see what I can figure out.

928driver commented 2 months ago

Hello,

First of all, I want to thank you for developing this mining integration in HA. I have now monitored and controlled my S19 for quite many months and it is working great!

I am adapting the speed on my miner, depending on electricity price and solar panel production. When I need the heat for heating my house in the fall and winter, that will also impact when the miner will be running. Therefore I would also be very much interested in to be able to switch individual hash boards on and off. @b-rowan , did you find out if this is possible?

b-rowan commented 2 months ago

Hello,

First of all, I want to thank you for developing this mining integration in HA. I have now monitored and controlled my S19 for quite many months and it is working great!

I am adapting the speed on my miner, depending on electricity price and solar panel production. When I need the heat for heating my house in the fall and winter, that will also impact when the miner will be running. Therefore I would also be very much interested in to be able to switch individual hash boards on and off. @b-rowan , did you find out if this is possible?

I haven't really been able to look into this, I've been super busy recently, so haven't had a ton of time to maintain this project in general, and this feature specifically is the hardest of all of them. It's on my list, but it could be a while yet.