Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I start/stop my rig through automation in Home Assistant? #25

Open
old-square-eyes opened this issue Mar 5, 2023 · 13 comments
Open

Comments

@old-square-eyes
Copy link

Is it a device, service or something else in the actions? I have a trigger. I can't figure out what to fire. Sorry, a bit new to Home Assistant.

@old-square-eyes
Copy link
Author

old-square-eyes commented Mar 5, 2023

Or is it this (a service)

image

@old-square-eyes old-square-eyes changed the title How can I start/stop my righ through automation in Home Assistant? How can I start/stop my rig through automation in Home Assistant? Mar 5, 2023
@old-square-eyes
Copy link
Author

Bump

@jseppeli
Copy link

Also interested to know

@old-square-eyes
Copy link
Author

I was able to get automation bumping the power mode when my solar is exporting excess energy to the grid. I have one in reverse too for when there's no longer any surplus, setting power mode to LOW. But as far as I can tell there is no complete START/STOP

image

@old-square-eyes
Copy link
Author

old-square-eyes commented Apr 1, 2023

I got start/stop to work with Action > Service > Switch "Turn On", then added the entities...

Issue is though that NH on my PC seems to lock up and become unresponsive after an API start, followed by an API stop. I can't even start/stop in the desktop app. And I couldn't exit it at one point with the app icon stuck in the system tray. I had to reboot my PC. The weird state is the desktop app says mining with zero profitability. Online monitor says "Status Unknown".

image

@jseppeli
Copy link

jseppeli commented Apr 1, 2023

I can't find the switches in list of entities. Am I possibly missing something important?

@old-square-eyes
Copy link
Author

I can't find the switches in list of entities. Am I possibly missing something important?

In automation add a Service. In services add a Switch. In Switch add the Nicehash Entity.

@jseppeli
Copy link

jseppeli commented Apr 2, 2023

I can't find the switches in list of entities. Am I possibly missing something important?

In automation add a Service. In services add a Switch. In Switch add the Nicehash Entity.

Like I tried telling above, I can't find the Nicehash switches as Entities.
Here is a complete list of all switch entities that can be selected and they are not either shown in Devicese _& Servicec entity list
image

@old-square-eyes
Copy link
Author

@jseppeli have you installed this integration per the instructions via HACS?

@jseppeli
Copy link

jseppeli commented Apr 3, 2023

@old-square-eyes yes and I have even checked that API has the same permissions as in the instructions

@eavogels
Copy link

eavogels commented Jul 9, 2023

Hi. Is there a follow up here? I'm exactly at this pojnt as well. Cannot find the switches. Did you get it to work?

@jseppeli
Copy link

jseppeli commented Jul 9, 2023

Hi. Is there a follow up here? I'm exactly at this pojnt as well. Cannot find the switches. Did you get it to work?

No, never got it working

@julianxv
Copy link

julianxv commented Mar 3, 2024

@jseppeli @eavogels

To get the Power Switches you've to do a change at the switch.py File in custom_components/nicehash.

Changes that have to be done are listed here:

master...RoaringSon:ha_nicehash:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants