-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug] Device trackers are stuck #570
Comments
So, this is the data collected from the other issues. I would kindly ask all the tagged users to check whether the issue with device trackers still persists with the latest version 0.22.0. And then we will try to solve it
From #550 (@alhemicar86):
|
What can I say to help you? I don’t use the wireless on the router, but use a home deco mesh system. I have ping to my iphone (in dhcp fixed ip) installed and also use the deco integration to detect presence of my iphone. I just switched my iphone to airplane mode. Within 2 minutes the ping and deco integrations report I am not home. I waited 15 minutes, but the Asusrouter integration never reports me away. I am aware there some sort of technical log in HA, but don’t know where to find it. If you need to know more then direct me where to look. |
Updated to 0.22.0, will keep an eye on extension. |
State updates still get stuck after several hours. |
0.22.0 actually made it worse in a way that now trackers don't update even after integration is reloaded. |
Your device model Firmware type Firmware version Integration version with the issue Method of the integration installation What version and type of Home Assistant installation do you use Is there anything useful in the logs? Diagnostics information Additional information |
Somehow it decided at random to work now, and I made no changes to it. Will follow up tomorrow if it kept working after nightly router reboot. |
For now, I am trying to collect as much data as possible on the issue. The main problem is, that exactly the same device models with the same FW version work for one user, but not another. This makes the bug quite hard to locate and troubleshoot |
If it is any help, my installation is HA OS, on https://www.gigabyte.com/Mini-PcBarebone/GB-BMPD-6005-rev-10#kf |
Ack. I am also running HA OS (on a Raspberry PI 4). I was away from home 4 times today, 2 times more than 2 hours. Asusrouter did not report me ‘away’ at all. |
Im seeing the same issue, trackers haven't updated for a while. Your device model Firmware type Firmware version Integration version with the issue Method of the integration installation What version and type of Home Assistant installation do you use |
Looks like a really strange behave, so far. While my S22 is tracked nice when turning of the wifi and change to mobile data the raspberry pi on the other hand is still online after poweroff and unplug from power cable. The frontend (AiMesh overview) of the router shows the pi online when online and is not listed when offline. On the other hand i have three 3D printers with mainsail OS running and all three of them are powerless but two of them are listet as online and only one is offline. Tracking with laptop is still ongoing because of work :-) Your device model Firmware type Firmware version Integration version with the issue Method of the integration installation What version and type of Home Assistant installation do you use Is there anything useful in the logs? Diagnostics information Additional information |
Found this in logs today. It has also some reference to Python 3.10, preceding the error itself. 2023-03-07 09:06:41.385 ERROR (MainThread) [custom_components.asusrouter.router] Error connecting to '192.168.###.###' for device update: None It was preceded by (I do have 2 esp32 boards unpowered and disconnected from network ar the moment, and 3 connected): Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Knock on wood, but the device tracking seems to work fine for me the last 5 days edit a week later: Jinxed it. Trackers get stuck |
I didn't update the integration for a while and was using version 0.8.0. It all worked fine. Then I updated to 0.22.0 (not directly, but went through versions as described in documentation) and now it doesn't switch to away. I am tracking my two phones. I managed to figure out one thing. If I turn off my wifi on the phone, within 30s it will show away. But if I just go out of range it will never show as away. Home Assistant 2023.3.4 |
Same problem here. RT-AX92U / Stock 3.0.0.4.388_22525 Asusrouter 0.22, Home Assistant 2023.3.4 Device tracking works ok for some hours, and then stops updating. I checked the router network map and devices are not connected, but the state is not update in HA. One strange thing I noticed that happens most of the times (but not always), is that the device is reported not home / home / not home withing minutes after leaving, and by that moment phone is quite far, it's impossible to be connected to home wifi. |
Same problem here, Router Asus RT-AC68U version fw |
Same problem. GT-AX6000. Merlin 388.1 |
Same issue. My status is always home, even when I leave and my phone is not connected. Asus Router: ZenWiFi_XT8. |
A reboot of the router seems to work for me. I have automatic reboot once a week, trackers work fine the first few days after. Will try to monitor this pattern. |
Version |
Hi @Vaskivskyi |
Dear @Vaskivskyi, |
@TeddyLafrite, do you have an AiMesh setup or a single device? In both cases, please check whether the integration |
Do you use Smart Connect? The feature to route clients automatically between 2.4 Ghz and 5 GHz. If so, you can try disabling it for some time and check |
Yes SmartConnect is active ; i'll disable it and will check |
Tested without SmartConnect : nothing change |
Confirm |
Hello all still seeing issue, latest and greatest for everything. Can provide more info if needed |
This error is appearing in my logs. If I Restart Wireless through the integration, device trackers are updated and correctly show their home/away status. Logger: custom_components.asusrouter.router Cannot get clients from '192.168.50.1': ('Cannot connect to 192.168.50.1. Failed in |
Your device modelRT-AX88U Firmware typeMerlin Firmware version388.5 Integration version with the issue0.26.0 Method of the integration installationHACS What version and type of Home Assistant installation do you useHome Assistant Core v2023.12.4 Information of the logsNo related info I could find in the logs. 2023-12-28 21:19:50.973 ERROR (MainThread) [custom_components.asusrouter.router] Cannot get clients from '192.168.XX.1': ('Cannot connect to 192.168.XX.1. Failed in Additional infoAlso, in the state of the device tracker of my iPhone, I saw that the attribute "Node", does change within seconds of changing the connection state of the iPhone. I hope the above info helps a bit solving the issue. Let me know should more info be needed. |
Device tracker in 0.26.0 seems to be broken again. Worked fine in 0.24.2. Used the update feature within HASC to update from 0.24.2 directly to 0.26.0. Edit: could one of you guys also having issues with the device tracker please do me a favor and restart your router? Edit2: Restarting the Router seems to fix the issue only for the time of restart. Could someone other having issues with device tracker post firmware of router? |
Please, update to |
Hi @Vaskivskyi |
Hi, |
@Vaskivskyi - as always thanks for the work you are doing. Latest release 0.27.1 seems a lot better but there is something weird with this integration and the actual router GUI / connected clients views. In summary, when I have the integration installed. I see some clients in the Asus GUI that are not really connected to the network. I see others that are on the network but reporting as being on the wrong node. So there is something strange happening and it doesn't surprise me that there ends up being strange behaviour for the connected_devices entity in HA. I rebuilt my entire Asus network manually on merlin 388.5 and then upgraded to 388.6 alpha but I still have the same issue. the only solution for me has been to remove the integration from HA and reboot the router. I have RT-AX86S with 2x RT-AX58U nodes all running merlin 388.6 alpha |
@Vaskivskyi - Installed the latest update and all is working here at the moment. Haven't tested everything yet, but bugs found I'll let it know here. |
Dear @jata1 , @Vaskivskyi My router is an Asus RT-AX88u, running on Merlin 388.5. |
@ppmg77 - I have used mqtt in the past for other integrations but not at the moment. I do have a mqtt/mosquitto container on my system but it is not running. My issue / strange behaviour is with client trackers with the asusrouter integration. The problem is 2-way in that when I use the asusrouter integration then I see incorrect client data in the asus web gui and I get issues with tracked devices saying they are home when they are away and this is somewhat correlated with that I see in the asus gui. At the moment, I have completely removed the asusrouter integration from HA and I am now monitoring how the asus gui behaves - so far it is working perfectly so I think the root issue is something to do with the HA asusrouter integration/api |
@Vaskivskyi @jata1 I'm running everything in docker containers. Yesterday afternoon zigbee2mqtt was updated from version 1.34.0 to version 1.35.0. This broke the connection between z2m and MQTT broker. I've reverted back to version 1.34.0 and all works smoothly again. |
In case AsusRouter is actually causing troubles with the clients updates in the GUI, try disabling the In any case, with any of your findings, let's move to a new issue. Interference with the device itself should not be hidden in 100 comments. @ppmg77, good, that your issue was solved. AsusRouter cannot interfere with the network traffic of the device directly. And if so, it would not influence only one connection. MQTT is not any special and is sent via TCP/IP, so troubles in this from the router would also cause lots of other troubles for your network |
@Vaskivskyi - Understood. I will start a new issue here on github. Maybe easier to discuss on a discord channel/thread |
Hi @Vaskivskyi |
Since the issue is not only router-related, but client-related, please refer to the issue #792 in case you are experiencing troubles after updating to Make sure you are providing all the info as mentioned in the first message of issue #792 - which includes not only router info, but also info on the connection method (including any switch and AP in-between) as well as client info. The first report there is a good example of what to provide. Don't forget to refer to the section This issue will be closed. |
The problem
Some devices are experiencing problems with device trackers. The symptoms are the following:
home
, but never toaway
If you are experiencing a similar problem, please add your device MODEL and FIRMWARE VERSION in the comments. Also, add AsusRouter version you are using
If you see any errors or warnings in the HA log from AsusRouter, please add them as well.
Please, don't post "the same error" without any details about your device. This does not help. In order to find and fix the issue, information is needed.
P.S. All other issues with the same problem will be closed. Please, report this problem here and only
Your device model
RT-AX88U
Firmware type
Merlin
Firmware version
3.0.0.4.388.1
Integration version with the issue
0.22.0
Method of the integration installation
HACS
What version and type of Home Assistant installation do you use
Core 2023.3.0
Is there anything useful in the logs?
No response
Diagnostics information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: