Core: Asuswrt still stops working after a while

Created on 8 Feb 2019  路  17Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

0.87.0

Last working Home Assistant release (if known):
NA

Operating environment (Hass.io/Docker/Windows/etc.):
Docker

Component/platform:
https://www.home-assistant.io/components/asuswrt/

Description of problem:

This component only works for a few hours, but after a while it fails so It will leave all the devices as not_home. it's a bit frustrating because it worked perfectly for several days when they came up with a patch on #19031

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

asuswrt:
  host: 192.168.2.1
  username: xxxxx
  password: xxxxx

Traceback (if applicable):

2019-02-08 05:01:01 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:01:14 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:01:27 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:01:40 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:01:53 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:02:06 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:02:19 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:02:32 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:02:45 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:02:58 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:03:11 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:03:24 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:03:37 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:03:50 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:04:03 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:04:16 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:04:29 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:04:42 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:04:55 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:05:07 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:05:20 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:05:33 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:05:46 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:05:59 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:06:12 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:06:25 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:06:38 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:06:51 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:07:04 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:07:17 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:07:30 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:07:43 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:07:56 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:08:09 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2019-02-08 05:08:22 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12

Additional information:

Reference #18735, #19031 #20111

Router: AC-86U latest Merlin firmware installed (384.8_2)

asuswrt stale

All 17 comments

Similar issue, mine was working for several days after finally being fixed in 0.87.0, then this happens. I'm not getting any errors in my logs though.

Router: RT-AC58U with latest Asus firmware (3.0.0.4.380_8457)

Okay guys... try this:

asuswrt:
  host: 192.168.2.1
  username: xxxx
  ssh_key: '/config/ssh/asuswrt' #set your own rsa key
  port: 22
  protocol: ssh

Then add a separate device tracker:

device_tracker:
  - platform: asuswrt
    interval_seconds: 15
    consider_home: 90
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false

It has been working for the past 18 hours.

didn't work for me, i installed the old tracker in custom_component which fixed it for now. The same with samsung TV.

didn't work for me, i installed the old tracker in custom_component which fixed it for now. The same with samsung TV.
How do you install the old tracker in custom_component? Thanks

didn't work for me, i installed the old tracker in custom_component which fixed it for now. The same with samsung TV.
How do you install the old tracker in custom_component? Thanks

Stopped working after update to 0.87.1

I had the exact same issue with same log entries in home assistant 0.87.1 and 0.87.0 running on raspberry pi 3. I was using telnet with no ssh. The solution with adding new device tracker and switched to ssh has been working very good in the past 24h.

Router: RT-AC68U with latest ASUS firmware 3.0.0.4.384_45149

I had the exact same issue with same log entries in home assistant 0.87.1 and 0.87.0 running on raspberry pi 3. I was using telnet with no ssh. The solution with adding new device tracker and switched to ssh has been working very good in the past 24h.

Router: RT-AC68U with latest ASUS firmware 3.0.0.4.384_45149

Can you give us an example of your config?

I've been also having this issue but can't get anywhere.
Previously I did an hack that would just kill the ssh session when this happened and it would connect again but with this new async version of asuswrt I can't really get it working anymore.
I've created an issue in the plugin repo: https://github.com/kennedyshead/aioasuswrt/issues/20

It might be possible to set a timeout in the connection... I'll look into it

I had the exact same issue with same log entries in home assistant 0.87.1 and 0.87.0 running on raspberry pi 3. I was using telnet with no ssh. The solution with adding new device tracker and switched to ssh has been working very good in the past 24h.
Router: RT-AC68U with latest ASUS firmware 3.0.0.4.384_45149

Can you give us an example of your config?

Limited time working config:

asuswrt:
  host: 10.0.0.1
  username: admin
  password: **************
  protocol: telnet
  port: 23

Didn't try this config with ssh. Tracker works from 10mins to max 2 hours. When I did some config changes on the router and applied them during not working periode. Tracker worked again for a limited time. This config didn't have a device tracker config node as documentation says it shouldn't be needed.

It might be possible to set a timeout in the connection... I'll look into it

thank you @kennedyshead

Please test pip install https://github.com/kennedyshead/aioasuswrt/archive/master.zip

It has been working for me perfectly for the last few days, the trick is to add a separate device tracker and to authenticate with SSH,

My device tracker is working again for the last 3 days without problems. I have the following config

asuswrt:
  host: 10.0.0.254
  username: admin
  password: mypassword
  port: 22
  protocol: ssh
  mode: router

device_tracker:
-platform: asuswrt
  interval_seconds: 15
  consider_home: 180
  new_device_defaults:
    track_new_devices: true
    hide_if_away: true

See the picture for my asus settings.

settings-router

Now with v. 0.94.1 it's called "legacy"
2019-06-11 10:17:48 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:05:00

Even with an update interval of 5 minutes it's a problem - as you can see.
I have tried with both telnet and ssh as well as your suggested settings in my router. No luck - very annoying.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

no news here ? facing eyactly the same issue :/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konstigt picture Konstigt  路  3Comments

piitaya picture piitaya  路  3Comments

sibbl picture sibbl  路  3Comments

sh0rez picture sh0rez  路  3Comments

kirichkov picture kirichkov  路  3Comments