speedport icon indicating copy to clipboard operation
speedport copied to clipboard

[FEATURE] Connected devices

Open MelleD opened this issue 1 year ago • 4 comments

Can you output the number of connected devices in the WLAN as a sensor? Is this possible :)?

MelleD avatar Oct 18 '23 06:10 MelleD

Hey, I don't think we should integrate this specific evaluation as a separate sensor. This is a value generated from other values provided by this integration. I think a better approach would be to use a template sensor to get the number of connected wifi devices, try something like this:

{{ states.device_tracker|selectattr('state', 'eq', 'home')|selectattr('attributes.type', 'ne', 'lan')|list|length }}

Andre0512 avatar Oct 18 '23 12:10 Andre0512

Ok I can try that. I think I saw it on the fritzbox integration, but let me double check :)

MelleD avatar Oct 18 '23 12:10 MelleD

Ah I see here some information :) https://www.home-assistant.io/integrations/fritz/

IMHO this could be useful, off course there are workarounds e.g. for the QR image I just safed it manually from the speedport.ip. But if I change it again, I also have to manually update it :)

  • Update - firmware status of the device.
  • Image - QR code for Guest Wi-Fi.
  • Device tracker - presence detection by looking at connected devices.

It's no high priority but some ideas for long term.

MelleD avatar Oct 18 '23 14:10 MelleD

{{ states.device_tracker|selectattr('state', 'eq', 'home')|selectattr('attributes.type', 'ne', 'lan')|list|length }}

I tried this, but it's not complete the same. Here I have 46 devices connected. My Speedport status show me 49 connected devices. I haven't been able to figure out which 3 devices are missing yet.

MelleD avatar Oct 21 '23 06:10 MelleD