core: asuswrt tracker shows invalid status 'away' all the time

Home Assistant release with the issue: 0.82.1 wasn’t working in 0.82.0 and 0.81.6 either

Last working Home Assistant release (if known): not known

Operating environment (Hass.io/Docker/Windows/etc.): Docker on top of Synology NAS

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

Description of problem: My setup:

  • ASUS RT-AC68U in AP mode. Software version 3.0.0.4.384_32799
  • ssh and telnet active I’m trying to use asuswrt device tracker, but it almost never works correctly. It only shows a correct status after I restart my router (AP mode). It’s shown correctly for 10-20 minutes and then again it shows ‘Away’ despite my device is all the time connected to the network.

In the ASUS web-management interface I can see my device all the time as connected/available. Therefore I don’t understand why the tracker in HA shows the invalid information. Perhaps something wrong in the aioasuswrt or in asus firmware, but no clue how to check this.

I tried command: wl assoclist and it shows my connected devices. But a bit incorrectly too. This one shows devices to be connected all the time in contrast to HA tracker which shows them as not connected.

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

device_tracker:
  - platform: asuswrt
    host: 192.168.0.10
    username: admin
    password: _my_password_
    mode: ap
    protocol: ssh

Traceback (if applicable):


Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 34 (12 by maintainers)

Most upvoted comments

I have the same problem after upgrading to .82 from older version. I have seen that my AC68U firmware updated too, but I was not able to see where the error came from.

Here it is the log from hassio

2018-12-02 12:11:26 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    hass, processed_config)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/asuswrt.py", line 48, in async_setup
    conf = config[DOMAIN]
KeyError: 'asuswrt'
2018-12-02 12:11:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of device_tracker.asuswrt. Setup failed for dependencies: asuswrt
2018-12-02 12:11:26 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.
2018-12-02 12:11:33 WARNING (MainThread) [homeassistant.components.switch] Setup of platform broadlink is taking over 10 seconds.
2018-12-02 12:11:34 ERROR (SyncWorker_10) [homeassistant.components.switch.broadlink] Failed to connect to device

Did you add the asuswrt platform in configuration.yaml? https://www.home-assistant.io/components/asuswrt/

In my case, I found a solution. I created the folder custom_components in /config and added an edited version of assuswrt.py, where I just removed the sensor init part. Now the device tracker works fine. It seems the problem was in the sensor part of the component, which I don’t mind to turn off because I wasn’t using it anyway. Hope this helps someone…