Auto-Entities Card - How do I add secondary info?

I’m trying to show when the last time a motion sensor changed status. This is what I have. What am I doing wrong here. I can get it to show up for lights, but not motion sensors…

type: custom:auto-entities
card:
  type: entities
  title: Motion Status
  show_header_toggle: false
filter:
  include:
    - entity_id: '*iaszone*'
    - entity_id: '*occupancy'
      options:
        secondary_info: last-changed
  exclude:
    - name: SM-S906U*
    - name: '*button*'
    - name: '*Button*'
    - name: The Profit*
    - name: '*Barrier sensor*'
    - name: '*Door*'
sort:
  method: last_changed
  reverse: true
  numeric: true

Works OK here with two tweaks:

Do you need and “options” for each entity type?
ie:

  include:
    - entity_id: '*iaszone*'
      options:
        secondary_info: last-changed
    - entity_id: '*occupancy'
      options:
        secondary_info: last-changed

And, the only ZHA motion sensor I have has a display name of “blah blah iaszone”, but the actual entity ID is “blah_blah_ias_zone”. Note the underscore in “ias_zone”

HTH. YMMV.

3 Likes

Thanks. The option per entity worked. I should’ve been more clear. I could get the sensors to show up, but couldn’t get the last changed time to appear.

1 Like