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

The sensors don't update themselves #27

Open
Busak007 opened this issue May 29, 2023 · 10 comments
Open

The sensors don't update themselves #27

Busak007 opened this issue May 29, 2023 · 10 comments

Comments

@Busak007
Copy link

the sensors don't update themselves. They only have new values ​​when I give the "Reload" integration

@RACMan2527
Copy link

Same. Seems to be artifact of August builds for HA?
I renewed my NiceHash API, yet the values for the miners only update when 'reload integration' is selected for this NiceHash component.
Using version ecd72e0

@jagauthier
Copy link

Any update on this? I just loaded integration and the sensors do not update.

@RudiPohlen
Copy link

Same here. Installed the Integration today, but the sensor newer update themselv.

@turemao
Copy link

turemao commented Apr 23, 2024

Same here, The miners counters only update when 'reload integration' is selected for this NiceHash component.
Have you found the solution to this issue?

Anyway, great job to the developer.

@RudiPohlen
Copy link

No, I have uninstalled it. It's useless if it doesn't update itself

@jagauthier
Copy link

I messed with it for awhile, but I do not know much about HA integrations. The author seems to have lost interest in this.

@turemao
Copy link

turemao commented Apr 24, 2024

I used this workaround:

edit configuration.yaml
shell_command: nice_restart: "/usr/bin/curl -X 'POST' -H 'authorization: Bearer <token>' http://localhost:8123/api/config/config_entries/entry/integration_id/reload"

automation:
`- id: '1713952324533'
alias: Reload Nicehash Integration
trigger:

  • platform: time_pattern
    minutes: '5'
    condition: []
    action:
  • service: shell_command.nice_restart
    data: {}
    mode: single
    `

where:
"token" is long lived token I’ve generated in profile section
"integration_id" from nicehash entry inside config/.storage/core.config_entries file

@jagauthier
Copy link

@turemao That's cool. Does restarting the integration every 5 minutes cause any performance issues?

@turemao
Copy link

turemao commented Apr 24, 2024

@jagauthier The Trigger is once per hour, the 5th minute of every hour, that's enough for me.

@jagauthier
Copy link

Nice. I will re-evaluate. Thanks for the tip!

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

5 participants