HACS stuck 'waiting for device activation'

I have a fresh install of HA on a VM.
When I try to install HACS, I get to GitHub and enter my code, GitHub says my device connected successfully but HACS is stuck on “waiting for device activation” and there is no submit button as per the instructions.
I made sure HA has internet connectivity… so not sure where to go from here.

2 Likes

If using the dedicated ‘home assistant’ app on a mobile device (phone/tablet) try using a browser instead. This solved it for me.

I’ve seen a note that for browsers one must clear the cash first. I didn’t have to do that, but maybe you need to?

1 Like

I have the same problem here. Followed the installation steps (download HACS) and now HACS is stuck on “waiting for device activation”.

I’m running HA on a VM under linux. Fresh install. What can I do?

Hello all,

My first post and experiencing same problem, any idea how this get sorted?

Thanks

I resolved this issue on my system by restarting HA via Developer Tools, clearing the cache on my browser on all instances of the app (ie laptop and phone), closing down HA app on laptop and phone and then retrying on laptop.

Yeah… thats one fucking annoying bug.

Instructions are outdated btw… the “Submit” button is no more.

Edit:
Lol… it works!
After trying different Browsers, clearing Cache multiple times. i got annoyed and tired to oppen an issue on on Github.
So i activated Logging in config.yaml and rebooted (for like the 3rd or 4th time?)
Tried again, and it just worked in 5 seconds.
Thanks Obama!

1 Like

This worked for me. Thank you!

Nothing is working for me. Clearing Cache multiple times, tried tablet other pc phone… reinstalled my VM completely. Even did a new github account. Still won’t activate… I’m getting reallllly pissed.

2 Likes

Same here. So sad, can’t develop new stuff :frowning:

1 Like

Seems like I am in the same boat. Running HAOS in a VM. The system has a working connection.

Same problem, running it in a docker container

2024-05-02 18:58:46.903 WARNING (MainThread) [homeassistant.data_entry_flow] custom_components.hacs.config_flow::HacsFlowHandler calls async_show_progress without passing a progress task, this is not valid and will break in Home Assistant Core 2024.8. Please report it to the custom integration author
2024-05-02 18:58:47.048 DEBUG (MainThread) [aiogithubapi] The authorization request is still pending.

I am stuck in the same problem, this morning I had upgraded my HA version to 2024.5.0, Idk if that could affect. I have clear my cache/history browser. Closed all the other sessions/tokens and rebooted my machine several times but it does no pass the activation.

Same issue here. In addition to what others tried, I tried Chrome and Safari, Mac and Windows, browser Incognito mode, restarting HA, and removing cookies & cache (which would be redundant in the case of Incognito mode). Brand new Supervised install on Raspberry Pi 4B.

  • Core 2024.5.0
  • Supervisor 2024.04.4
  • Frontend20240501.0

UPDATE: the issue seems to be related to how HACS activation handles HTTP code 400

2024-05-02 11:48:19.544 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x06\xb6\x01'
      ^
2024-05-02 11:48:19.556 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x07\x16\x01'
      ^
2024-05-02 11:48:30.793 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x06\xd6\x01'
      ^
2024-05-02 11:48:30.954 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x01\x06\xf6\x01'
      ^
1 Like

Same problem here, have tried everything short of a complete HA reinstall, which I’m not willing to do yet… :slight_smile:

I’ve run out of ideas what to do here, too. I refreshed caches, tried different browsers and machines, reinstalled Chrome, followed multiple tutorials, removed devices in GitHub. In the end, I installed a new VM container with HA and tried to start from scratch, but still no success. Every single time it stalls at the device activation stage. Multiple people have raised this in the last few hours, I have noticed…

1 Like

Yep! I thought I was going crazy. Today was the first day I have ever used Home assistant and during the setup, it is stuck on the authorizing device :frowning:

Hey guys :wave: just came across this issue myself and found this GH issue that seems to be the same thing: https://github.com/hacs/integration/issues/3391

Apparently it’s just rate limiting.

How would I get around that? Wait until the middle of the night when less people are using it to add the integration?

Still broken for me.

I can’t get past this either.