AsusRouter Integration Fails Setup (HA Core 2024.2.3 Supervised on Pi4)

Router is ASUS RT-AX88U with Asuswrt-Merlin :[3004.388.6], also using AMTM have installed Diversion, Skynet, spdMerlin and AdGuardHome.

Error log is:

Logger: homeassistant.config_entries
Source: config_entries.py:444
First occurred: 12:50:59 PM (1 occurrences)
Last logged: 12:50:59 PM

Error setting up entry 192.168.10.1 for asusrouter
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/__init__.py", line 27, in async_setup_entry
    await router.setup()
  File "/config/custom_components/asusrouter/router.py", line 439, in setup
    await self._init_sensor_coordinators()
  File "/config/custom_components/asusrouter/router.py", line 812, in _init_sensor_coordinators
    available_sensors = await self.bridge.async_get_available_sensors()
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/bridge.py", line 243, in async_get_available_sensors
    SENSORS: await self._get_sensors_modern(AsusData.WIREGUARD_CLIENT),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/bridge.py", line 512, in _get_sensors_modern
    data = await self.api.async_get_data(datatype)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/asusrouter.py", line 653, in async_get_data
    processed = process(
                ^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py", line 113, in process
    return submodule.process(data)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/hook.py", line 144, in process
    vpnc, vpnc_clientlist = process_vpnc(data)
                            ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/hook.py", line 483, in process_vpnc
    vpnc_id = safe_int(part[6])
                       ~~~~^^^
IndexError: list index out of range

Novice here but as a wild guess could this be related to the ATMS add-ons?

I think you’d be better off posting here:
[Custom component] AsusRouter integration.
Atleast the Author of the integration might know alittle more than average users :slight_smile:

1 Like

Thanks. Done