How can I create a list of devices belonging to an integration?

Going to Settings | Devices & Services | Devices presents a list of all devices. You can filter it by integration.

I’m trying to create the same list of devices with auto-entities. I envision something like you can do with wildcards. But I can’t find a way to enumerate over an integration’s devices. I’m assuming this is possible, but so far no bueno.


  - type: custom:auto-entities
    card:
      type: entities
    filter:
      include:
        - entity_id: scene.sutton_powerview*
      

Just to be clear, are you trying to list all the entities or all the devices? As its name implies, the Auto Entities card is for entities.

I’m trying to get all the entities per device of an integration

You could do something like:

type: custom:auto-entities
card:
  type: entities
filter:
  include: []
  exclude: []
  template: |
    {% set integ = 'zha' %}
    {{ integration_entities(integ)
    | map('device_id') | unique
    | map('device_entities') | flatten }}
1 Like

I walk the entity / device / integration tree in the Inspect tool for my ZenOS indexer…

Brilliant!