Is there anything I can do to get this to work with Home Assistant Cast? It works fine on my laptop and iPhone but if i cast it the screen is blank.
I have noticed that if use the custom button card it doesn’t work with templates and im wondering if that has anything to do with this not displaying in cast. If I don’t template it seems to be fine. Im not sure if there’s a fix on my end or not.
I’m having an issue, when first reloading the page the card seems nice. But when I change to another view and then go back to the previous view the card only shows one column. This occurs everytime I go to the view twice. This gets fixed when I reload the page again.
Occurs everytime. Happens only on computer because on phone it always appears as one column.
As I mentionned earlier, the new grid system is very handy ! What would be your approach for a responsive layout ? I guess we can use card mod with breakpoints to alter the css of the layout card, but it seems pretty messy to me and I’m sure there’s a better way.
The end goal is to have a layout that fits nicely on different devices :
Mobile -> Tablet -> Desktop (picture not made by me)
One way to do this would be actually having three different layouts and switch between them based on mediaquery using state-switch.
The grid layout is still very much a work in progress, and I’m experimenting with ways to switch the layout dynamically without having to define the same card multiple times (though yaml node anchors will help with this a bit too).
Thanks a lot for the suggestion, I’ll definitly try that out !
I’m heavily relying on lovelace_gen for my config, to me it plays the same role as anchors & much more. Is there any reason, in this case, to prefer using actual anchors instead of an !include statement ?
Just wanted to thank you for you useful advices, what you created is really powerful !
state-switch + lovelace_gen + layout card give me a pretty good result in term of responsivness. There’s still overlap & my interface is kind of meh, but I’m to lazy to fix the css right now. Anyway I finally have an interface that adapts to all my devices thanks to you, and it’s only using a single file for the UI !
The layout rules for auto still applies, so it will still fill up each column with at least five units of cards before moving on to the next one. But it will fill at least five columns before trying to put more cards into the first ones. Try vertical instead.
Thanks for this (and other) components. I’m facing a problem layouting my cards. For some reason they are only listed vertically, while I would expect them to go horizontally to if vertical space was not enough.
Vertical goes OK when i remove the panel: true, but i would expect it to use more card-columns, so it scales on desktop and mobile
I don’t quite understand.
You’ve carefully made sure it will always put your cards in exactly four columns, in the way described in the readme.
The readme also says
Since layout-card is a card in it self its area of effect will be limited to the width of a card, and thus you will (almost) always want to use it in panel mode:
so that explains exactly what you’re seeing.
There’s also descriptions and examples on how to set the maximum width of the columns within the layout card.
It displays perfectly on my phone (everything vertical), but it shows terrible on a desktop (everything vertical). I want something that will fill up the horizontal space on large displays (if at all possible …)