I’m at a loss on this one. Have my RT-N18U updated to the latest Merlin FW, SSH works fine, but HA picks up ONLY the wired devices, nothing from the wireless interface?! Having read a ton of asuswrt threads I couldn’t find any solution - anyone?
To clarify - I use the Asus as an AP, while my Pfsense router is doing everything else. This shouldn’t be a problem for tracking purposes as I can see ALL devices being listed as connected to the wireless interface of the Asus.
Debugged into the code, it should be returning the information regardless of mode. Also, any issues that are arising should appear in the logs. You may want to turn on debug and see what is showing up. This doesn’t look like a home assistant issue, it looks like a aioasuswrt issue or your routers issue.
I have the same problem. I have an RT-AC68 on AP mode and it only shows wired devices. I turned on debug for this component and nothing weird showed up:
2021-04-19 12:58:07 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Checking devices for ASUS router 192.168.1.5
2021-04-19 12:58:09 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_count data in 0.000 seconds
2021-04-19 12:58:10 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_bytes data in 1.430 seconds
2021-04-19 12:58:11 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_rates data in 0.969 seconds
2021-04-19 12:58:11 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_count data in 0.000 seconds
2021-04-19 12:58:14 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_bytes data in 2.076 seconds
2021-04-19 12:58:14 DEBUG (MainThread) [homeassistant.components.asuswrt.router] Finished fetching sensors_rates data in 2.080 seconds
Because it’s running in AP mode, DNS leases are managed by the router and not the AP, so dnsmasq.leases file is empty (it does exist in the default location but it’s 0 bytes).
There’s a clientlist.json file that has all the detailed information of all wireless and wired devices, categorized even by which interface (2.4GHz or 5GHz) they’re connected to.
I’ve tried changing the interface to get statistics from but that didn’t solve the issue. I don’t think this is a problem with the AP because there are plenty of files that have the necessary information to report on clients but the integration doesn’t seem to be reading those files.
I tried browsing the source code of this integration, to see how the devices get reported but it went over my head, and couldn’t make any progress.
I use the same router in wireless router mode and everything works fine. ASUSWRT integration and I have all devices as entities in HA including wireless.
The problem is likely that I’m running it in AP mode, so there’s no dnsmasq.leases because those are managed by the router and not the access point.
If somehow, you could test by changing your router to AP mode only but that would require having another device as a router, otherwise your whole network will stop working.
BTW, did you change the interface and location of the dnsmasq.leases file or left it with the defaults?
I can’t try, I don’t have any other equipment.
I didn’t change anything in the RT-AC68 router, I just enabled ssh in the LAN and changed the default ssh port.