New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
device_tracker/asuswrt gives false positive on RT-AC86U #18465
Comments
Closing since #18427 was merged |
@cgarwood @kennedyshead I installed aioasus 1.1.11. Unfortunately, it didn't help. All devices physically disconnected from the network have in HA state |
Are you 100% sure you do use 1.1.11? If you have an issue I think it should be dealt with in the component: https://github.com/kennedyshead/aioasuswrt Install that test it with a script (you could find test in issues that are closed), any error would be great to have filed as bugs in that repo |
How long time is it online, there is an unfortunate "delay" in the connection. |
@bieniu did you ever solve this? I've have the same issue and been searching for answers. I just got a Asus ac86u and flashed Merlin's latest stable and latest home assistant 84.2. The issue is with an iPhone, if I turn off WiFi it will switch to away but whenever the iPhone leaves the house it always shows home. Android devices work perfectly. Any help would be appreciated. |
@budbay No, I didn't solve the issue. The component still for several devices displays the |
@bieniu i agree i would like to see this reopened, however im starting to think that this is related to merlin firmware possibly. im unsure how to use the aioasuswrt test scripts so i used several methods to do some testing. i took and older version of the device tracker from another issue thread so i could more easily modify it in custom_components for testing(https://pastebin.com/JHew4djg). i checked each individual command by removing all but one from
get_wl gives output like "assoclist xx:xx:xx:xx:A0:B0" and since there is no ip listed with it, it is ignored by this block
so i removed the "if" line and retested then i get accurate detection from wifi, i then moved on to try get_neigh which worked as expected however devices come and go offline frequently when not sending traffic. so i then ran the device_tracker for a day using just
and now i was getting accurate detection from my wifi devices. so next i started playing with just using get_arp, this is where i think the problem lies. first i found that some devices were not reporting correctly in hass and i saw
to
this seemed to help but i was still having issues with an iphone that would not show away if it leaves the house. so after monitoring the commands during the events i found that while the device is no longer connected, "arp -n" still shows
note that it does not show as "incomplete" like other disconnected devices, but it is gone from get_wl and stale from get_neigh, so something may be wrong with the way the router is handling a device that does not disconnect from network "gracefully". i am starting to exhaust my limited ability to understand these things and was hoping to further a dialog to help figure this out. i know my approach is "ugly" as im just hacking apart on ald device_tracker but at this point thats all i could figure out. so for now im just using wl and neigh for wireless presence and all is working. i hope this can help move forward with this. i apologize if this was too long or should be posted else where, i am open to such feedback. |
This is not a bug in home assistant, its a bug in aioasuswrt. |
Home Assistant release with the issue:
0.82
Last working Home Assistant release (if known):
unknown
Operating environment (Hass.io/Docker/Windows/etc.):
RPi3, Raspbian, Python 3.6.3 virtual_env
Component/platform:
device_tracker/asuswrt
Description of problem:
For some devices, the component gives a false positive
home
state when they are disconnected from the network. After rebooting the router they havenot_home
state but after reconnecting and disconnecting the state remainshome
for next router restart. Some problematic devices are wire, some wireless. My router model is RT-AC86U with Merlin firmware 384.7_2.All my devices have a static IP address assigned by DHCP.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Additional information:
One of the devices that have such problems is Dune media player. This is the result of the commands for this device when it is disconnected from the network.
Resault is false positive but the router in the web interface shows that the device isn't connected. I asked about it some time ago on the asuswrt-merlin forum and I got the answer that this method will not work on this router model (and all new models I think).
The text was updated successfully, but these errors were encountered: