Thank you very much @Kethlak for taking the time and sharing this card - I used the original coded version and switched to your hacs version recently.
I recently moved one of my dashboards to use sections and I notice that the hide when empty does not seem to work on a section … I am left with a blank space where the card will be.
I don’t know if this is an issue with the experimental sections code or something with the card. I tried removing the title entity in case that was causing the issue but no change. These are the settings I have:
Thanks @Kethlak for the fast response - more details on sections here
Its a new feature for home assistant that enables drag and drop along with other functions. Its classed as “experimental” by the HA team so we can expect some changes yet as each release comes out.
I am testing it out because another front end integration (thomasloven/lovelace-layout-card] with the Layout-break has stopped working in the june releases of HA and discussion on that issue suggested sections would be a good work around. I had been meaning to try out sections since they were release in April but had not got to it … so now I am force marched!! There are other issues with sections for earlier versions of android where condition cards don’t correctly hide - they just leave a blank space - but that seems to not be the case on later releases of android which use a more up to date webview version.
This code on a blank dashboard inserted by using the raw configuration editor may give you a start point … for the cards around the alexa card I just used some time and date entities so hope they will show up correctly for you and allow you to see the gap. Obviously you will need to change the alexa entities
I included a conditional card as well and that works on on my android 14 but not my android tablet running 5.1 … thats for info only so you are also aware of other pending issues
Card edit on sections shows up in the centre of the card when you hover over it.
@snigehere I figured out a way to make this card conditional. I set up a template binary_sensor in my configuration files: for your example, it should look like this (there may be a better way of formatting this code, but I don’t know enough jinja to improve it - basically it’s a binary sensor that is on if any of these is not ‘unknown’):
I can’t get the card to show up when I go to add the card to a panel. It is installed at: \www\community\card-alexa-alarms-timers, and I have restarted Home Assistant.
The issue with the alexa card impacts all versions of webview plus chrome and firefox … the issue native to sections (linked above) only affects old android webview and old versions of chrome
I will make the change you suggested to part solve it as it will defiantly be an improvement but not the full solution.
Sections are only experimental so maybe they will find a solution to the conditional card or maybe some later release will correct the logic that your card uses.
I did, and I found the card, and I clicked on Download.
HOW ELSE would the card be in www\community\card-alexa-alarms-timers?
I restarted Home Assistant, and the card is not found when I try to add it to a panel.
@stevemann You said “there is no three-dots menu on the HACS page”. I thought you meant that you couldn’t follow the instructions at all.
How far were you able to get in the instructions? Please remember that I cannot see your system, and that I cannot read your mind. I do not know how you got the file on your system, as I was not the one who put it there. “HOW ELSE would the card be in www\community\card-alexa-alarms-timers ?”
@stevemann it would be helpful if you could include some screen shots - it maybe you are using the experimental version of hacs so the UI is different - I have not used that version so don’t know if that is indeed the case.
When you go to HACS and choose / filter on frontend do you see the card listed?
The install steps for me would be … from frontend in hacs I would first set up the custom repository so that its available to use and then having done that go to “search and download” within hacs to install the card. The card would then be shown in the front end of HACS as being installed.
To make sure the resource got correctly set up go to settings > dashboards … click the three dots and choose “resources”
Ahh … now its clear thanks … you can’t add it via adding a card - you need to add a manual card and paste in the code from the help document, adjusting the entities for your ones … … I see you call yourself yaml challanged so a direct copy / past will work. From the alexa media player integration you can discover the names of the entities you need to use