ha-asusrouter: [Bug] Asus Router Connection Error

The problem

I updated the OS to beta 2025.6.0b3. Then the AsusRouter integration didn’t work. It wouldn’t connect. It gave an unknown error. I tried reinstalling it, but it didn’t help!

Your device model

RT-AX55

Firmware type

Stock

Firmware version

3.0.0.4.386_53119

Integration version with the issue

0.35.0

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

Core 2025.6.0b3

Is there anything useful in the logs?

Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.1.1`: ('Cannot connect to `192.168.1.1` on port `8443`. Failed in `_send_request` with error: `Server disconnected`', None)
Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.1.155`: ('Cannot connect to `192.168.1.155` on port `8443`. Failed in `_send_request` with error: `Server disconnected`', None)
Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.1.240`: ("Cannot connect to `192.168.1.240` on port `8443`. Failed in `_send_request` with error: `Cannot connect to host 192.168.1.240:8443 ssl:default [Connect call failed ('192.168.1.240', 8443)]`", None)
Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.1.1`: ('Cannot connect to `192.168.1.1` on port `80`. Failed in `_send_request` with error: `Cannot connect to host 192.168.1.1:80 ssl:default [None]`', None)

Diagnostics information

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 34 (5 by maintainers)

Most upvoted comments

Ok, so 0.35.2 is available now via HACS - please, check 😊

I’ve got access to an RT-AC66U (with 3.0.0.4.380.70_0) and found an issue happening with HA 2025.6.0+. This exact issue is fixed and it looked like the one discussed here

Hopefully, this would also solve the issue you guys have

I installed version 0.26! This works! Until it is fixed, I will use this!

Image

Image

Image Image

I think we got there now 🤫 To be released soon

Works great. Thanks for your time and effort!

Still not OK - 0.35.1 and 2025.6.1
RT-AX55, Stock FW: 3.0.0.4.386_53119, and RT-AC58U, Stock FW: 3.0.0.4.382_52504

Same here, error: Failed setup, will retry: (‘Cannot connect to ... on port .... Failed in _send_request with error: Server disconnected’, None)

The issue is observed on RT-AC66U B1 model, ZenWiFi XT9 is working ok.

Since, apparently, everything works now for most of you, I will close this issue 😉

Great news to wake up to - fixed for me as well, thank you.

On Sun, 15 Jun 2025, 09:18 TyronBrandt, @.***> wrote:

TyronBrandt left a comment (Vaskivskyi/ha-asusrouter#933) https://github.com/Vaskivskyi/ha-asusrouter/issues/933#issuecomment-2973239894

Now work for me too.

Thanks very much!

— Reply to this email directly, view it on GitHub https://github.com/Vaskivskyi/ha-asusrouter/issues/933#issuecomment-2973239894, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFU77OTLO47LDVHDYBNXO6L3DSGUDAVCNFSM6AAAAAB6IZLREKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZTGIZTSOBZGQ . You are receiving this because you commented.Message ID: @.***>

Now work for me too.

Thanks very much!

And it’s a yes from me too.

Many thanks for sorting so quickly.

Perfect! Thanks!!! Good job!!!

Working - 0.35.2 and 2025.6.1 !!! RT-AX55, Stock FW: 3.0.0.4.386_53119, and RT-AC58U, Stock FW: 3.0.0.4.382_52504

Thank you for the fast fix!

Ok, so 0.35.2 is available now via HACS - please, check 😊

I’ve got access to an RT-AC66U (with 3.0.0.4.380.70_0) and found an issue happening with HA 2025.6.0+. This exact issue is fixed and it looked like the one discussed here

Hopefully, this would also solve the issue you guys have

Can confirm it’s working for me now 😃 Thanks a lot!

It’s fixed! Thanks so much!

Ok, quindi 0.35.2è disponibile ora tramite HACS - per favore, controlla 😊

Ho avuto accesso a un RT-AC66U (con 3.0.0.4.380.70_0) e ho riscontrato un problema con HA 2025.6.0+. Questo problema è stato risolto e sembrava simile a quello discusso qui.

Spero che questo risolva anche il problema che avete

Works for me, tks a lot

As per: DSL-AC68U with Merlin firmware 386.07_2-gnuton1.

0.35.1 and 2025.6.1 still gives same error for me.

Same error here as well.

Thank you @Vaskivskyi !

Hello, guys. Thanks for your reports and sorry for the delay.

Please, check version 0.35.1 of the integration available in HACS

Hi @Vaskivskyi tks for your time, but on RT-AC87U and HA 2025.6.0 I have the same error (‘Cannot connect to 192.168.1.1 on port 80. Failed in _send_request with error: Server disconnected’, None)

I can confirm that the error is because of iohttp being updated in Home Assistant. Creating a virtual environment and installing aiohttp==3.11.18 with the following code:

import ssl
import asyncio
import aiohttp
from asusrouter import AsusRouter, AsusData
from asusrouter.error import AsusRouterConnectionError


async def main():
    ssl_context = ssl._create_unverified_context()
    connector = aiohttp.TCPConnector(ssl=ssl_context)
    session = aiohttp.ClientSession(connector=connector)
    router = AsusRouter(
        hostname="192.168.1.1",
        username="username",
        password="password",
        port="443",
        use_ssl=True,
        session=session,
    )

    try:
        await router.async_connect()
        data = await router.async_get_data(AsusData.NETWORK)
        print(data)
    except AsusRouterConnectionError as e:
        print(f"Error connecting to the router: {e}")
    except Exception as e:
        print(f"An unexpected error occurred: {e}")
    finally:
        await router.async_disconnect()
        await session.close()


if __name__ == "__main__":
    asyncio.run(main())

I get everything working. FYI: I had to do ssl_context, because my router only accepts SSL connections, but needed to pass verification on the self-signed certificate. If I then install aiohttp==3.12.12, which is the new version inside Home Assistant, I get the exact same error we’re all experiencing.

We can’t override bundle version in the requirements section of the manifest.json, so the code will have to be updated, and that’s above my knowledge. I can say that similar errors have been found in other integrations, and their fixes might help @Vaskivskyi. Here’s one of those issue with the reason it’s failing (something to do with cookies): https://github.com/home-assistant/core/issues/146585#issuecomment-2967897731 and the PR with the fix https://github.com/home-assistant/core/pull/146697

My router is RT-AC68U with Merlin firmware v386.14_2