Auto-entities with else card within vertical stack

When using an else option with auto entities within a vertical stack card and using an entities card as the “else” card, the else card does not display on the dashboard, though it is visible in the preview.

type: vertical-stack
cards:
  - type: custom:auto-entities
    card:
      show_header_toggle: false
      type: entities
    filter:
      include:
        - entity_id: binary_sensor.fridge_plug
          options:
            type: custom:template-entity-row
            color: >-
              {% if is_state('this.entity_id','on') %} green {% else %} red {%
              endif %}
        - entity_id: binary_sensor.freezer_plug
          options:
            type: custom:template-entity-row
            color: >-
              {% if is_state('this.entity_id','on') %} green {% else %} red {%
              endif %}
      exclude:
        - state: 'on'
    unique: true
    else:
      type: entities
      entities:
        - entity: binary_sensor.always_true
          type: custom:template-entity-row
          name: All Plugs
          icon: mdi:power-plug
          color: green
  1. Suggest to ask/raise similar issues in the dedicated auto-entities thread.
  2. The issue what you described seems to be a bug. Check this issue.
  3. The “filter” in you card contains only 2 entities with same “options” and for 2 possible entities (“test_boolean”, “testing_boolean”) may be optimized like:
    filter:
      include:
        - entity_id: /input_boolean.(test|testing)_boolean$/
          options:
            type: custom:template-entity-row
            color: >-
              {% if is_state('this.entity_id','on') %} green {% else %} red {%
              endif %}
      exclude:
        - state: 'on'
1 Like

Thank you @Ildar_Gabdullin