#Hide empty sections

1 messages · Page 1 of 1 (latest)

marsh moth
#

I have a bunch of section on my dashboard organised after if somethings on or off or if somethings wrong. These sections are often showing as if they are empty because "all is as it should" but they still take up space in the dashboard. For instance i have a section with media players that only show the media players that are on. This is controlled on individual entities visibility rather than the whole sections visibility. Even if no media player is on this section still takes up space. Is there somehow to make a section invisible if there is currently no content being displayed in it rather than duplicating all logic for each individual entity inside it. See attached screens

fossil walrus
#

i'm not sure to understood your question correctly, but you could use the local conditional card from HACS, couldn't you?
Have you treied that already?

marsh moth
#

Haven't tried that. Will check it out

#

The problem is the empty space to the left of the dishwasher card on. the first picture. The second picture shows that there is an "empty" section still taking up sapce there

fringe holly
#

Don't use sections if you just want everything in stack, you can use masonry dashboard for that.

finite quartz
#

Hey @marsh moth If I understand you correctly, you should set the Visibility logic on the section that should be hidden or not. If this relies on whether there is something currently showing in the section itself, there is no current easy way of doing this. You may create a helper for that so if all of the children of that helper are in a particular state, the section will be hidden.

marsh moth
#

@finite quartz Yeah exactly right. I wanted to have something like "if contents of section is visisble" as a condition for the section.