I have a Asus RT-AC1200 connected to home assistant following the Asuswrt component page.
The device tracker works flawlessly but the bandwidth sensors are not they report unknown
image below for reference.
The log report errors like that for the 4 sensors
Update for sensor.asuswrt_upload fails
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py”, line 220, in async_update_ha_state
await self.async_device_update()
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py”, line 377, in async_device_update
await self.async_update()
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/sensor/asuswrt.py”, line 134, in async_update
await super().async_update()
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/sensor/asuswrt.py”, line 63, in async_update
self._rates = await self._api.async_get_bytes_total()
File “/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py”, line 189, in async_get_bytes_total
rx = await self.async_get_rx()
File “/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py”, line 196, in async_get_rx
return int(data[0])
ValueError: invalid literal for int() with base 10: ‘’
My config is like that
asuswrt:
host: xxx.xxx.xxx.xxx
username: xxxxxxx
ssh_key: /config/ssh/asuskey
sensors:
- upload
- download
- upload_speed
- download_speed
Anyone have experienced something similar? Any help will be appreciated thanks