Skip to content

No longer working with OpenWrt 2025.12 (RC1) #50

@Rudd-O

Description

@Rudd-O
Dec 30 03:50:21 assistant hass[1370715]: 2025-12-30 03:50:21.025 DEBUG (MainThread) [custom_components.openwrt.ubus] Starting api_call with subsystem: system, method: board, params: {}
Dec 30 03:50:21 assistant hass[1370715]: 2025-12-30 03:50:21.025 DEBUG (MainThread) [custom_components.openwrt.ubus] New API call to [https://ap.host/ubus] with data: {"jsonrpc": "2.0", "id": 3, "method": "call", "params": ["f83d1fbe13c4160de0f08067f4ef5ae9", "system", "board", {}]}
Dec 30 03:50:21 assistant hass[1370715]: 2025-12-30 03:50:21.620 DEBUG (MainThread) [custom_components.openwrt.ubus] Raw JSON response from [https://ap.host/ubus]: {'jsonrpc': '2.0', 'id': 3, 'result': [0, {'kernel': '6.12.62', 'hostname': 'ap.host', 'system': 'ARMv8 Processor rev 4', 'model': 'OpenWrt One', 'board_name': 'openwrt,one', 'rootfs_type': 'squashfs', 'release': {'distribution': 'OpenWrt', 'version': '25.12.0-rc1', 'firmware_url': 'https://downloads.openwrt.org/', 'revision': 'r32353-9e9b05130c', 'target': 'mediatek/filogic', 'description': 'OpenWrt 25.12.0-rc1 r32353-9e9b05130c', 'builddate': '1766089549'}}]}
Dec 30 03:50:21 assistant hass[1370715]: 2025-12-30 03:50:21.620 DEBUG (MainThread) [custom_components.openwrt.ubus] Starting api_call with subsystem: network.wireless, method: status, params: {}
Dec 30 03:50:21 assistant hass[1370715]: 2025-12-30 03:50:21.620 DEBUG (MainThread) [custom_components.openwrt.ubus] New API call to [https://ap.host/ubus] with data: {"jsonrpc": "2.0", "id": 4, "method": "call", "params": ["f83d1fbe13c4160de0f08067f4ef5ae9", "network.wireless", "status", {}]}
Dec 30 03:50:22 assistant hass[1370715]: 2025-12-30 03:50:22.215 DEBUG (MainThread) [custom_components.openwrt.ubus] Raw JSON response from [https://ap.host/ubus]: {'jsonrpc': '2.0', 'id': 4, 'result': [2]}
Dec 30 03:50:22 assistant hass[1370715]: 2025-12-30 03:50:22.215 ERROR (MainThread) [custom_components.openwrt.coordinator] Device [ap] async_update_data error: RPC error: 2
Dec 30 03:50:22 assistant hass[1370715]: Traceback (most recent call last):
Dec 30 03:50:22 assistant hass[1370715]:   File "/var/lib/assistant/custom_components/openwrt/coordinator.py", line 331, in async_update_data
Dec 30 03:50:22 assistant hass[1370715]:     wireless_config = await self.discover_wireless()
Dec 30 03:50:22 assistant hass[1370715]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 30 03:50:22 assistant hass[1370715]:   File "/var/lib/assistant/custom_components/openwrt/coordinator.py", line 52, in discover_wireless
Dec 30 03:50:22 assistant hass[1370715]:     response = await self._ubus.api_call('network.wireless', 'status', {})
Dec 30 03:50:22 assistant hass[1370715]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 30 03:50:22 assistant hass[1370715]:   File "/var/lib/assistant/custom_components/openwrt/ubus.py", line 41, in api_call
Dec 30 03:50:22 assistant hass[1370715]:     return await self._api_call(rpc_method, subsystem, method, params)
Dec 30 03:50:22 assistant hass[1370715]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 30 03:50:22 assistant hass[1370715]:   File "/var/lib/assistant/custom_components/openwrt/ubus.py", line 127, in _api_call
Dec 30 03:50:22 assistant hass[1370715]:     raise ConnectionError(f"RPC error: {result[0]}")
Dec 30 03:50:22 assistant hass[1370715]: ConnectionError: RPC error: 2

Status code 2 is invalid parameter, but network.wireless status isn't supposed to take a parameter. Maybe a bug in ubus?

I've actually re-run everything using CURL locally, and I get the same error, so it's probably a bug in ubus?

Weirdly, when invoked thru the command line, ubus -v call network.wireless status gives out all the info no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions