thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

Card sometimes isn't showing #252

Open CodexHere opened 1 year ago

CodexHere commented 1 year ago

My Home Assistant version: 2023.7

Layout-card version 2.4.4

What I am doing:

Using auto-entities to display tile cards for my fans.

What I expected to happen:

tile cards should show the entities expected 100% of the time.

What happened instead:

70+% of the time the cards are not shown on (PC) browser page refresh or android app load. It requires many refreshes to finally appear. Using auto-entities with glance or entities card renders perfectly fine, every time. Using layout-card with either of these result in the same issue of it not appearing most of the time, with or without auto-entities involved.

Minimal steps to reproduce:

Here I'm using a veritcal-stack to provide a header title, but it fails consistently without it as well:

type: vertical-stack
title: Fans
cards:
  - type: 'custom:auto-entities'
    card:
      type: custom:layout-card
    filter:
      include:
        - domain: fan
          options:
            type: tile
            features:
              - type: "fan-speed"
    sort:
      method: state
      reverse: true

Error messages from the browser console: N/A


By putting an X in the boxes ([X]) below, I indicate that I:

CodexHere commented 1 year ago

As an interesting aside, when I click the triple-dot menu and click Refresh, that does render 100% of the time.

However, as many users are accustom to, a page refresh yields an empty space quite frequently.

Video Demo: https://streamable.com/q9ihnw