Auto-entities With Entities and Combined Filters

I have the below code that works great. The code is actually much larger and encompasses just about anything that is not in a baseline mode and auto builds an (auto-)entities card. I love it.
Though, I’d like to only show “entity_id: sensor.saros_z70_current_room” (the last line) if the “entity_id: sensor.saros_z70_status” is not in an “idle” state. Essentially basing the display of one entity based on the status of another entity. All inside a single auto-entities card. Is this possible?

  - type: custom:auto-entities
    card:
      type: entities
      show_header_toggle: false
      state_color: true
    filter:
      include:
        - domain: lock
          state: unlocked
        - domain: cover
          not:
            state: closed
          attributes:
            device_class: garage
        - entity_id: sensor.saros_z70_status
          not:
            state: idle
        - entity_id: sensor.saros_z70_current_room

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

1 Like

It would be awesome if I could do something like.

        - entity_id: sensor.saros_z70_current_room
          not:
            entity_id: vacuum.saros_z70
              state: idle

So, only display the current room if the vacuum is not docked.

For this particular case you may use a stock conditional card/row

I’d considered. I just really appreciate that the card completely disappears when nothing meets the criteria, and that it takes up minimal space on the page. Thanks though.