Skip to content

ASUSWRT not working on RT-AC51U Router #175056

Description

@baunan

The problem

I have a simple old router ASUS RT-AC51U where the integration hasn't worked for some time. When trying to set it up I am getting an unknown error. I do this regardless of selection of https, http, port etc when trying to login.

What version of Home Assistant Core has the issue?

2026.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ASUSWRT

Link to integration documentation on our website

https://www.home-assistant.io/integrations/asuswrt

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.components.asuswrt.config_flow
Source: components/asuswrt/config_flow.py:190
Integration: asuswrt (documentation, issues)
First occurred: 08:57:11 (1 occurrence)
Last logged: 08:57:11

Unknown error connecting with AsusWrt router at 192.168.10.2 using protocol https
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/config_flow.py", line 190, in _async_check_connection
    await api.async_connect()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/bridge.py", line 389, in async_connect
    await self._api.async_connect()
  File "/usr/local/lib/python3.14/site-packages/asusrouter/asusrouter.py", line 203, in async_connect
    return await self.async_get_identity() is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/asusrouter/asusrouter.py", line 293, in async_get_identity
    self._identity = await collect_identity(
                     ^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
    )
    ^
  File "/usr/local/lib/python3.14/site-packages/asusrouter/modules/identity.py", line 119, in collect_identity
    identity = _read_nvram(identity_map)
  File "/usr/local/lib/python3.14/site-packages/asusrouter/modules/identity.py", line 175, in _read_nvram
    raise ex
  File "/usr/local/lib/python3.14/site-packages/asusrouter/modules/identity.py", line 166, in _read_nvram
    value = method(data[key]) if method else data[key]
                                             ~~~~^^^^^
KeyError: 'serial_no'

Additional information

The integration has worked before on this router, but unsure when it stopped, but definitely worked on 2025.11. It has not worked on any of the updates this year. My HA is running on a Proxmox VM on a NUC i3, OS is 16.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions