He asking about the weather card - not the radar.
I have never used grid layout. Weird it works in the editor though. Have you asked the grid layout card author about this?
He asking about the weather card - not the radar.
I have never used grid layout. Weird it works in the editor though. Have you asked the grid layout card author about this?
The radar card is awesome to mate! But yeah, asking about the weather card
No, I havenāt asked them, all the other cards I use work fine, except the weather card. Thought Iād start with you first. But I will give it a shot.
Do you think it has anything to do with adding
view_layout:
grid-area: ***
to the settings in the weather card??
Probably as thatās not a valid option in the cardā¦ you probably need to wrap the weather card with the grid layout one.
Iām still wrapping my head around the new format, but it seems to now be integrated into Lovelace as the:
type: 'custom:grid-layout'
is outside of the cards:
section, but itās a requirement that the:
view_layout:
grid-area: ***
is inside the config of the card being placed into the grid.
Not sure how to get around thatā¦
But itās still being called ālovelace-layout-cardā
See the Quick Start in the READMEā¦
Does any or the other custom weather cards work with this? Have you asked Thomas? If a different card works I can take a look and see what they are doing and try to replicate but I think you need to ask Thomas about it and maybe he will have a suggestion of a modification I can try. Otherwise not much I can do.
I have tried
which does work correctly.
Code:
title: BOM Test
views:
- title: Home
path: home
type: 'custom:grid-layout'
layout:
grid-template-columns: 10% 80% 10%
grid-template-rows: auto
grid-template-areas: |
". bom ."
badges: []
cards:
- type: 'custom:weather-card'
view_layout:
grid-area: bom
entity: weather.noble_park
number_of_forecasts: '5'
Iāve put a request out to Thomas, Iāll let you know what he comes back with.
Iāll take a look at that card and see if there are any clues or maybe Thomas can help. Iām just a hacker but we will see if there is a way.
Unsure why, but the last 3-4 days, the card has been randomly disappearing from my lovelace UI. A quick refresh brings it back, but give it 10ish hours and it just disappears againā¦
Are any entities disappearing?
Seems that all entities that are listed in the card are still good
any console errors? What version of the card is showing?
The advanced example on this page works correctly in grid layout if youād care to have a look.
Iāve been trying to adapt it to your code but I have never worked with js or CSS before, so I have no idea what any of it means!
I will check it out - just a busy weekend. I have very limited Java skills but we will see if I can figure it out
Yeah the dev-docs arenāt helping much. Also looked at Thomasās repo and I see that the grid-layout also isnāt working with the Apex Charts. I see you posted here š¹ Layout-card - Take control of where your cards end up - #419 by Psyonic as well.
I will try Discord to reach Thomas for advice/help so hang tight (but not TOO tight.) Low expectations for this but we may be rewardedā¦
Thanks mate!
Not sure if this helps you, but the BOM Radar card also works fine, perhaps @theRat might have some insightā¦?
No console errors. I think I have realised that it is whenever I do a restart of HA from another machine that it will disappear from my wall mounted tablet. Other than that it works fine.
Still odd thoughā¦ The card updates every 30 secondsā¦
Released as beta 0.89 of the card which (hopefully) will remove the console nag to update to Lit 2ā¦ No guarantees I got this right but so far seems ok to me.