Jizzay1
(Jizzay1)
September 13, 2022, 4:17pm
61
Battery card may work for you and could possibly filter for the entities you’re looking for.
Protoncek
(Pavel)
September 13, 2022, 5:07pm
62
Nope… at least i can’t put together nothing usable…
Gav_in
(Gavin)
September 13, 2022, 7:51pm
63
This might work…maybe
Using the Template Entity Row card from GitHub - thomasloven/lovelace-template-entity-row: 🔹 Display whatever you want in an entities card row. as your card, and then something like the code below to list out the “devices” attribute (name the sensor to suit your setup)
{{state_attr('sensor.asus_router_connected_devices','devices') | list | join(",
")}}
(adapted the template code from this thread List & count entities / devices connected to specific AP )
Protoncek
(Pavel)
September 14, 2022, 5:37am
64
Thanks, but sadly no… i tried similar to this, since i remember error in developer tools: “TypeError: ‘NoneType’ object is not iterable”
Vaskivskyi
(Yevhenii Vaskivskyi)
September 14, 2022, 6:05am
65
Hello,
The connected_devices
sensor attribute devices
is already a list of values MAC/IP/Name
. You can easily convert the list with a template. You can use it as any other list object. So, let’s say you want to list only names of devices. You split each element by /
and use the part with index 2
.
{% for el in state_attr('sensor.devicename_connected_devices', 'devices') %}- {{ el.split("/")[2] }}
{% endfor %}
In principle, any dashboard card with the support of templates will be able to handle it.
An example with Mushroom:
type: custom:mushroom-template-card
primary: Connected devices
secondary: >-
{% for el in state_attr('sensor.devicename_connected_devices', 'devices') %}- {{
el.split("/")[2] }}
{% endfor %}
icon: mdi:router-network
multiline_secondary: true
layout: vertical
fill_container: false
Maybe not the nicest looking, but the fastest one in a couple of minutes
2 Likes
Protoncek
(Pavel)
September 14, 2022, 8:20am
66
Many thanks, it works!
I’m not an programmer by nature, so these things are still strange to me, when it gets complicated (i’m more of a “basic - bascom language” guy). I’m learning and i always try to understand what i’m doing… i already succesfully converted your code to : name - IP address - MAC
Thanks again!
1 Like
mackmarton
(Mack Marton)
September 15, 2022, 6:49pm
67
Hi everyone,
I have an Asus RT-AC66U-B1 (same firmwae as RT-AC68U) with Merlin and I have the Asus Router integration installed in Home Assistant. My issue is that I have 10 connected devices to the Router but only 3 show up under the integration as devices. What could be the problem and the possible fix here?
Thanks for the help!
Vaskivskyi
(Yevhenii Vaskivskyi)
September 17, 2022, 8:57am
68
Hello,
The integration only creates device_tracker
entities. The one, that belongs to a device known to HA (e.g. this device was added by some other integration) will show up within a device. See a screenshot as an example. In this case, the device will be shown within 2 (or more) integrations.
Screenshot
In case, this device is unknown for HA, the device_tracker
entity is created in the disabled
state and needs to be enabled by the user. A screenshot 2 for example.
Screenshot 2
In the latter case, there won’t be any device associated with the entity. Just this entity (entities).
This is a feature of HA itself. I Hope, this will help you.
1 Like
Jizzay1
(Jizzay1)
September 22, 2022, 12:08am
69
Does this integration have capability to enable/disable internet access for a connected device? I didn’t see such a feature.
1 Like
Vaskivskyi
(Yevhenii Vaskivskyi)
September 22, 2022, 5:08am
70
Hello,
This feature is planned for integration and will be added with one of the future updates.
3 Likes
scetu
September 29, 2022, 6:52am
71
Is this integration affected by these issues with official integration?
opened 12:03PM - 12 Jul 22 UTC
integration: asuswrt
### The problem
I tried the AsusWRT integration but it always crashes my Asus R… outer and I have to restart it after about half a day. Im not 100% sure what but some request seems to eat up all space on /var after a while - not sure what or why tho.
Asus: RT-AX58U 512MB Firmaware: [386.7]
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 53376 53376 0 100% /
devtmpfs 255996 0 255996 0% /dev
tmpfs 256100 684 255416 0% /var
tmpfs 256100 1808 254292 1% /tmp/mnt
ubi1:data 4584 80 4232 2% /data
tmpfs 256100 1808 254292 1% /tmp/mnt
tmpfs 256100 1808 254292 1% /tmp
/dev/mtdblock9 48128 6856 41272 14% /jffs
### What version of Home Assistant Core has the issue?
2022.6.7
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
ASUSWRT
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/asuswrt/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
error message on Router:
Jul 1 05:29:19 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:29:26 check_watchdog: [check_watchdog] restart watchdog for no heartbeat
Jul 1 05:29:26 rc_service: check_watchdog 1783:notify_rc restart_watchdog
Jul 1 05:29:27 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:29:36 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:29:44 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:29:51 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:29:59 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:30:00 out of memory [6217]
Jul 1 05:30:08 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:30:15 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:30:24 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:30:26 check_watchdog: [check_watchdog] restart watchdog for no heartbeat
Jul 1 05:30:26 rc_service: check_watchdog 1783:notify_rc restart_watchdog
Jul 1 05:30:31 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:30:40 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:30:48 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:30:57 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:31:05 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:31:12 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:31:19 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:31:26 check_watchdog: [check_watchdog] restart watchdog for no heartbeat
Jul 1 05:31:26 rc_service: check_watchdog 1783:notify_rc restart_watchdog
Jul 1 05:31:27 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 7 s)
Jul 1 05:31:34 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 8 s)
Jul 1 05:31:42 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
Jul 1 05:31:51 dnsmasq-dhcp[19431]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9 s)
```
### Additional information
_No response_
opened 08:14AM - 25 Jun 22 UTC
integration: asuswrt
### The problem
Hi,
I have an ASUS modem and I installed the ASUSWRT integrati… on.
However, the integration creates a lot of SSH connections and leads to router/modem crash.
Further details: https://www.snbforums.com/threads/error-no-space-left-on-device.79449/#post-770999
A possible fix would be creating a connection at startup and use the same for retrieving data without creating a new one.
### What version of Home Assistant Core has the issue?
Core 2022.6.6
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Core
### Integration causing the issue
AsusWRT
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/asuswrt/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
Edit: I am looking for an solution/custom integration to these issues mentioned, cause I am already tired from official integration due to his.
1 Like
Vaskivskyi
(Yevhenii Vaskivskyi)
September 29, 2022, 7:26am
72
Hello,
No, it is not. The official AsusWRT
is using SSH or Telnet for the connection. AsusRouter
is using HTTP API - the same way, Web UI or mobile apps from Asus work.
Asus devices can easily handle multiple HTTP/HTTPS logins, so there is no problem on more than one connection simultaneously.
1 Like
scetu
September 29, 2022, 10:27am
73
Hi, thank you, I am setting it up now
1 Like
Vaskivskyi
(Yevhenii Vaskivskyi)
October 2, 2022, 8:06pm
74
With the new version 0.8.1, the integration becomes more stable and fixes the annoying “Connection reset by peer” error happening to some users.
Moreover, now AsusRouter is translated to Spanish!
Full release notes: Release 0.8.1 Less bugs and more translations · Vaskivskyi/ha-asusrouter (github.com)
1 Like
I have a problem installing this add-on. I install via Hacs, I reboot HA, but the integration does not found
Home Assistant 2022.9.6
moto2000
(David)
October 4, 2022, 4:29pm
76
Can you share a screenshot showing it installed via HACS?
Vaskivskyi
(Yevhenii Vaskivskyi)
October 4, 2022, 4:34pm
77
Hey. You might need to clear your browser cache. Or just click Ctrl + F5 - this should help. Some parts of the frontend are cached for faster UI load, which means changes are not shown immediately.
Vaskivskyi
(Yevhenii Vaskivskyi)
October 4, 2022, 6:28pm
79
Great. If you will experience any issues with the integration, please open an issue on GitHub - the link is in the first post.
Vaskivskyi
(Yevhenii Vaskivskyi)
October 5, 2022, 7:33pm
80
Unfortunately, there was a bug with exposing the WAN IP address in the diagnostics files generated by HA. Please upgrade to the new version 0.8.2 to apply the fix.
2 Likes