Just tried HACS today, and seems i hit the limit before it was set up for the first time, interestingly enough a second setup couldn’t even start adding the HACS integration with a separate token due to the rate limit seemingly being applied per github userid and not per token.
Yes you can’t just make a new token as it adds up all API requests on a per account basis.
I also set up a second github account just for HACS as I was hitting the 5000 limit. You really can ONLY use that account exclusively for HACS and even then I hit the 5000 probably once a day but because other stuff using github token is using a different account everything still works and HACS updates properly in the next hour.
It can happen. HACS uses a bunch or requests. It’s supposed to stop at 4900 but can go over - it does once a day for me… The important thing is to make sure you have a github account with the token ONLY used for HACS otherwise it’s easy to go over and then if other sensors etc are relying on it you get failures.
Here is what my github requests look like:
and my non-HACS account:
You can see if I was using the one account/token it blows through the 5000 easily
(did you mean v1.8?)
I tried OAuth out by upgrading my already GUI configured HACS and there was no problem with the upgrade…however this simply kept using the original github personal token and not OAuth
.
So using the GUI I deleted HACS in the integration page (did the suggested HA reboot), then came back using the GUI, I added HACS back in. This time it provides a popup for the OAuth based scheme. Before you do anything else, open up another tab in your same browser and log into the github account you want OAuth to use (if you have another github account already logged into, I suggest you log out of it first). HACS will use this login for OAuth.
Then follow the instructions. Here is the updated documentation:
As a note: my popup card shows the auth code as a string that looks something like: \n \nXXXX-XXXX\n. The code of course is XXXX-XXXX so ignore the \n.
Ok so this is just a different auth than using a token. It still generates API hits so I don’t think it’s going to help… (I switched and all is well but situation normal with the calls sensor)
As a new user to HACS I found the docs very confusing over this as they say to create a personal access token but nothing about what to do with it. But it sounds like from the release notes that the token is not needed and OAuth handles all authentication and bypasses the rate limit.