Had to restore using this procedure. wget -q -O - https://install.hacs.xyz | bash - seemed to work, but following a HA restart, HACS wasn’t there.
After running that script you have to go to configuration → integrations → add integration button. And then find HACS. I also stumbled over this step.
That last step is missing in the installation documentation. Or rather it is there but in the next section configuration. That is not obvious. Adding the integration to me and probably most is installation. I would add at the bottom of the installation page: “now continue with configuration” with a link
Got it. Thanks.
Thanks. So, after I remove the HACS integration and reboot, I need to run the below command while I’m ssh’ed into Home Assistant?
wget -q -O - https://install.hacs.xyz | bash -
After I do that, will it automatically ask me to link HACS to Github via OAuth?
NO!!!
You have it installed so WHY do you want to download it and install it again??? What do you think WGET is doing??
All you have to do is go to configuration>integrations and add HACS from there and it will use the new auth.
+1. Worked for me too.
Thanks
I’m getting a different result than others.
Went to Configuration > Integrations and deleted the HACS integration. When try to re-add it, I get the above image.
I tried using that code contained in the brackets to link to GitHub, but it doesn’t work. Any ideas what’s going on?
You must update HACS from it’s own menu entry before attempting to switch to oauth.
I had to temporarily change my browser language to english too (seems you’ll need to do that as well, you are getting the same message I got prior to update).
Hey @pedracca,
Thanks for chiming in. I’m actually not sure what you mean when you say that you must update HACS from it’s own menu entry. Could you clarify where that is?
As far as I can determine, my browser language is already set to English. I’m using Google Chrome, and confirmed through the settings that English is defined as the default.
I have a “HACS” menu entry in the left pane, on home assistant’s main screen.
You can navigate from there to the updates.
Ah, understood. However, when I go to the menu, I see the following:
There’s no place to try to update HACS.
When I navigate to the logs to see what the error is, it reports that HACS cannot be authenticated (makes sense).
Thanks! Thalía worked for me!
Add this in config:
hacs:
token: !secret github_access_token
and change the token with new one in secret.YAML
Did it for me
How do I replace my token, without uninstalling HACS
As you can read in lots of previous post, you don’t need to replace any token nor uninstall HACS. You only need to remove integration HACS from configuration–>integrations and add it again. All your HACS components will remain. Re-added HACS don’t need tokens.
If you really want to work with tokens, I think that, after token regeneration in github, you could change the new token directly in hacs configuration file.
Hi,
I to got the mail from Github and renewed my token, now ive got no more acces to my home assistant web ui or tablet apk.
On my pc i can log in to my system ( samba share) and see all the folders , can i replace my token in the config folder and where ?
Or can i remove HACS there to regain acces ?
Thanks in advance…
works for me, i’m running in docker mode, need to restart the docker container. (Restart in the control panel doesn’t work. )
Update: Added HACS via configuration.yaml and rebooted, it seem to work.
__
I was following this workflow mentioned above:
- Removed token from github
- Deleted HACS from HA
- Readded it immediately
- HACS was back with all the integrations and frontend
- Rebooted host completely
I removed the intergration successfully but I can still access it via the left hand panel.
There is no other hacs config in my configuration.yaml.
I can not re-add the integration because it says: Only a single configuration of HACS is allowed.
How can I re-add it without rebooting?
I got the same message about a single integration after deleting the original integration, so I restarted HA. Once restarted, I could add the integration again, it prompted me with the instructions for the token. Once I did that, everything was working once again, and all of the integrations and frontends showed up in HACS as expected.
Also found this link and it worked great since I had saved my new Github Token.
https://yaleman.org/post/2021/2021-03-27-resetting-github-pat-for-hacs/
I used the SAMBA addon to find the file and it was at:
\\your.ha.sys.iphere\config.storage\core.config_entries
Then use you favorite editor. For me it was Notepad++. Search for “HACS” and you should find:
"title": "HACS",
"data": {
"token" : "<your old token here>"
}
Replace you old token with the new one and then restart HA an your up and running…