Device tracker in Lovelace

Hi there,

I’m playing around with the lovelace options / yaml file and I’ve got a question about it. In the docs they write the following code:

- type: entity-filter
        filter:
          - domain: device_tracker
            state: 'home'
        card: glance
        card_config:
          title: People at home

However if I check the lovelace page I see al my devices that currently are “home”. So that’s my Rpi, my sonos’s, my sonoff switches, etc. Is there a way to exclude them or just link devices to people and track them? Bcause for me it’s not relevant to know if my switches and sonos’s are here =))

Mine is not doing that (but I have no device-trackers, so it shows a blank card with just the title).

Make sure you haven’t got any typos or missed spaces.

I do have device trackers; perhaps the right way to do for me is not track solid devices like the sonoff / sonos / etc

I’m not even sure why you would track those things.

Set the tracking to false in the known devices config file for the devices you don’t need to track.

To keep track of when systems are down for example.

that’s a good one indeed. They should work on categorizing device trackers or something like that.

That’s actually a really good idea. Maybe a “device_type”, and then you can put it as “person” or “device” or something like that. I don’t know if a github issue or maybe the “feature request” is a good way to get that in to the mix.

1 Like

This is exactly what I use them for would make it a lot easy on the configuration being able to use a device_class for known devices.

1 Like

I’m not quiet sure where I have to leave this feature request?

https://community.home-assistant.io/c/feature-requests

you can filter by entities as described in the documentation. Just swap out domain with entity id:

https://developers.home-assistant.io/docs/en/lovelace_card_types.html#entity-filter

1 Like

Yep, device_tracker works no differently than it always has, if you want specific devices you list them.

1 Like

Well, a device tracker is what is says it is… a device tracker. I am not tracking people, but tracking devices that are carried around by people… Tough one…

Of course. But it would be nice to distinguish the devices that are in fact working as ppl trackers

Another approach would be to show only the trackers that are member of a specific group and also have status ‘home’?

This feature is coming. Check https://github.com/ciotlosm/docs-lovelace/blob/master/card-entity-filter.md#feedback

I’m trying this new feature and I see that it shows all the devices, also is they are defined
track: false
in the known_devices.yaml file

Is there a way to limit only if the track value is true?

Thanks

Entity filter is changing again. It will now only filter a list of static entities. Check https://github.com/ciotlosm/docs-lovelace/blob/0.73.0/changelog.md and rest of filles on that branch