Is there a way to get the button card to only show the name and the state and have them equal size fonts and evenly spaced taking filling as much as the card as possible? I have tried a lot of combinations and nothing works. For example I want a card that has the name Temp and the state of the temp sensor
Considering I fill the button card with HTML containing links (A HTML elements). How should I setup the card to make those links active?
When pointer-events are set to auto, card intercepts clicks making the link is ignored. Is there any other CSS I should be aware of?
Iām using a managed dashboard. Is there a way to move the templates to an external file and include that so i can share templates across dashboards and different home assistant installations?
Hi all! I have searched hi and low for this so apologies if it has been answered.
Is it possible to spin an icon on its own axis. Like a coin spinning? It doesnāt need to have anything clever like front & back being different just like spinning a fan icon but left to right rather than around.
One more question. If i change the template file it keep using the cached version.
(it refreshes when i change the template name, reload the page, and change it back)
same goes for other yaml files included in my dashboard.
Help wanted
Could someone please help me construct a card that mimics this example.
Iām having trouble understanding all the different ins and outs of the custom button card, and yes, Iāve tried reading up on it
First, you should explain, what the different values represent. There seem to be a power usage, a light switch but what does āTimedā mean? The percent value, is this outdoor humidity and the current weather condition?
Do you have sensors for all these different states?
Iāve tried researching this my self, and Iāve also tried copying others work and adapting it, but the time I have left when the family is all taken care of here at home is just too scares, all before just bluntly asking for this;
I was wondering if someone could help me to create a custom button card (template to re-use)that has placeholders/makes it possible to choose different entities, states, icons, values or text in a way, roughly described as the example images below shows?
And if there is some element to this that cant be done without expert knowledge in coding, I would settle to the next best solution
Can someone tell me why i get this black ābackgroundā of my iconā¦ And how to manipulate it (basicly to tranparent, so i wont c itā¦ i want the icon on the card background, which is the white, that can be seen behindā¦)
the colors are just to show the different shapesā¦
I am trying to shape my custom field (button card) to be round with just the icon in itā¦ kinda like some of the Lovelace iconsā¦ I have tried now with both a custom button card and a button cardā¦ and both show this black square that i cant seem to be able to manipulateā¦
Because your custom_field is just a core button-card (not to be confused with custom:button-card, which is what this thread is about.
The core button-card is very limited and uses your theme for its colors, like the background: Button card - Home Assistant
So either change your theme colors, or use a custom:button-card instead of button-card in your custom_field. Then you can easily set the background to none, like you did with your main card to blue.
Only, i already did thatā¦ first I tried with a custom:button card and the the regular button cardā¦ same resultā¦ the ābackgroundā of the custom field is the white field you c thereā¦ that I can manipulateā¦ it is the black background I canāt manipulateā¦ it seems to be dependent on the iconā¦ if I do show_icon: false, the black background turn into a black lineā¦ but it doesnāt go away fully even thenā¦ ??
Here my code with the custom:button-card insteadā¦
I ermoved the styling for ānameā, since i am not using thatā¦ that makes the custom field placement moveā¦ But i still dont get where the black ābackgroundā originate fromā¦ The background of the custom:button-card (custom field) is the white area, as i have defined it for custom field stylingā¦
Alternatively, you can remove background: white from the styling of your custom_field through the main card and use it in the code I posted instead of background: none.