RomRider / ha_nicehash

💵 Custom NiceHash integration for Home-Assistant
MIT License
36 stars 13 forks source link

Feature Request: Start/stop rig #19

Closed n-engelhardt closed 2 years ago

n-engelhardt commented 2 years ago

I use my rig as a space heater by mining in the winter. I'd like to be able to automatically start/stop mining based on a temperature sensor. Can you add the ability to start/stop mining with this integration?

jcgoette commented 2 years ago

It's a switch.

https://github.com/RomRider/ha_nicehash/blob/aed53dcc3531b96cecad939a8503b6789986806a/custom_components/nicehash/nicehash.py#L114-L123

https://github.com/RomRider/ha_nicehash/blob/aed53dcc3531b96cecad939a8503b6789986806a/custom_components/nicehash/switch.py#L137-L152