Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Connected devices #4

Open
MelleD opened this issue Oct 18, 2023 · 4 comments
Open

[FEATURE] Connected devices #4

MelleD opened this issue Oct 18, 2023 · 4 comments

Comments

@MelleD
Copy link

MelleD commented Oct 18, 2023

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

@Andre0512
Copy link
Owner

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 }}

@MelleD
Copy link
Author

MelleD commented Oct 18, 2023

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

@MelleD
Copy link
Author

MelleD commented Oct 18, 2023

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
Copy link
Author

MelleD commented Oct 21, 2023

{{ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants