🔹 Auto-entities - Automatically fill cards with entities

Thanks for your reply, but is that not what I’ve done in my auto-entity card above?

Are we able to filter using time and date?
I want to be able to only show the current sensor, for this sensor, thanks

After some of the latest updates this code does not work as a separate card:

        type: 'custom:auto-entities'
        card:
          type: entities
          title: auto-entities (sort name global)
        entities:
          - entity: sensor.ac68u_devices_connected
            name: Подключено устройств
            secondary_info: last-changed
          - type: section
        filter:
          include:
            - domain: device_tracker
              attributes:
                source_type: router
              options:
                secondary_info: last-changed
        unique: true
        sort:
          method: name
          reverse: false
          ignore_case: true

Moreover - it forces some other cards to disappear.
How to reproduce:

  1. Open any view.
  2. Add a new card. Open code editor and add that code. Save.
  3. The added card is not displayed.
  4. Open raw editor.
  5. Find the added card and move it between cards located on this view. Save.
  6. Open the view - all cards located after the added card not displayed.

Yes, I have the same issue when using mini-graph inside auto-entities. Somehow everything on the page inside the same layout-card is gone. Happens on all my pages where mini-graph is present. Other pages work fine. On 1.7.0 all works. I hope it’s fixable.

There’s a bug in auto-entities which can cause this. I’m working on it right now.

Does anyone have problems with disappearing cards that are not in layout-card or vertical-stack-in-card?

1 Like

not disappearing, but appearing gaps around the auto-entities card (in stack-in-card): 🔹 Auto-entities - Automatically fill cards with entities
using the hui-element card on the auto-entities card fixes that for now.

Here 3 cards:

  • auto-entities
  • entity card
  • entities card
    The last 2 are not displayed too.
  - title: zzzzzzzzz
    path: zzzzzzzzz
    badges: []
    cards:
      - type: 'custom:auto-entities'
        card:
          type: entities
          title: auto-entities
        entities:
          - entity: sun.sun
            secondary_info: last-changed
          - type: section
        filter:
          include:
            - domain: device_tracker
              options:
                secondary_info: last-changed
        unique: true
        sort:
          method: name
          reverse: false
          ignore_case: true
      - type: entity
        entity: sun.sun
      - type: entities
        entities:
          - sun.sun
          - sun.sun

This should be fixed in 1.8.3

1 Like

Thomas, thank you! Now it works, I do not see the problem.

fwiw, 🔹 Auto-entities - Automatically fill cards with entities is still happening.

Fwiw @Mariusthvdb this has been happening as long as I can remember with conditional cards in vertical stacks too.

conditional cards do tend to take spaces, even as separate cards…

my issue above however is new since this week, and I believe it to coincide with the many updates of auto-entities. I didnt notice it after updating Ha itself to either of the 2021.3 versions (but might be wrong there, just didnt notice it)

Nothing else in that card config changed. there’s an older post of mine here too show the gapless way it was before:

This problem still exist since 1.8.2 and did not resolve with 1.8.3

Can’t reproduce with 1.8.3. What does your browser console say?

Your issue sounds like what my issue was. For me 1.8.3 has fixed it. Make sure you clear caches and reload page a few times. Sometimes it can get stuck to older version in the browser, even after multiple reloads. Closing other browsers can help. Or uninstall card, delete from resources, reboot HA, install again and add as resource, restart HA again and then reload browser.

Make sure it says this in your browser console, keep trying till it does and then test it.
msedge_hYnfiwXbEi

Same was for me.
Only after clearing the browser’s cache the disappeared content displayed.

Indeed:

12:38:58.063 AUTO-ENTITIES 1.8.3 IS INSTALLED auto-entities.js:194:5516

Unfortunately no luck!

Deleted all cards using auto entities. Removed and reinstalled auto-entities. After start-up, following message was recorded: 12:38:58.063 AUTO-ENTITIES 1.8.3 IS INSTALLED auto-entities.js:194:5516. No errors found. Using auto-entities again without embedded custom:fold-entity-row, functioned properly. Including custom:fold-entity-row back again made lovelace card disappear and resulted in error message: 13:17:40.477 TypeError: r is undefined auto-entities.js:1:27664.
Using the auto-entities.js hyperlink as shown in console delivered the following highlighted pointer:
function t(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if(“object”==typeof Reflect&&“function”==typeof …etc

Thank you. Try 1.8.4