thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.18k stars 111 forks source link

Unable to expand card size to both full width and height #412

Closed 1920x1200 closed 5 months ago

1920x1200 commented 6 months ago

Hello, I created an auto-entities card to display a rolling history of events in my home but using the filtering feature to remove things I don't care to see. It works great, but has one small issue. No matter what type of view or layout I set, the card can be expanded to the full width of the window but will not expand to the full height. I have also tried "Layout-card" and "Card Mod" and was unable to find a working combination to get the card to expand to all viewable space. I don't have this issue with other types of cards. Below is the code I am using for the card and a screenshot of the result. Is there something I am doing wrong or is this a known issue?

type: custom:auto-entities
card:
  type: logbook
  hours_to_show: 2
filter:
  include:
    - {}
  exclude:
    (truncated)

Screenshot 2024-01-08 at 12 28 37 AM

Screenshot 2024-01-08 at 12 19 17 AM

ildar170975 commented 5 months ago

Do you have this issue with logbook w/o using auto-entities? I suspect answer is “yes”))

1920x1200 commented 5 months ago

Do you have this issue with logbook w/o using auto-entities? I suspect answer is “yes”))

For a regular logbook card, I was able to find this workaround which involves adding this:

card_mod:
  style: |
    ha-logbook {
      height: calc(100vh - var(--header-height) - 32px) !important;
    }

It works for the regular logbook card but not for the auto-entities card.

ildar170975 commented 5 months ago

Good, this is my code )). And actually this is a Frontend issue, added a link to that post now. Try using this:

type: custom:auto-entities
card:
  type: logbook
  hours_to_show: 144
  card_mod:
    style: |
      ha-logbook {
        height: calc(100vh - var(--header-height) - 32px) !important;
      }
filter:
  include:
    - entity_id: sun.sun

image

1920x1200 commented 5 months ago

Awesome! After I changed the order and fixed my spacing, I got it working. Hopefully the root problem will get fixed soon. Until then I will use this workaround. Thank you! @ildar170975