Create dynamic list of active binary sensors

Hi!

I am looking to create a dashboard card that shows all current motion binary sensors that are “on”. Can’t seem to figure out the templating or even if this is possible?

Thanks in advance.

You’d have to use the entities filter card. Very easy to set up. List all the entities you want. Then in the state_filter, list what states you want to show. No template required.

1 Like

or use auto-entities and dont even list them :wink:

  - type: custom:auto-entities
    card:
      type: entities
      title: Motion!
    show_empty: false
    filter:
      include:
        - entity_id: binary_sensor.*_sensor_motion
          state: 'on'
1 Like