If state_display is not provided, the default behavior applies. state_display's grid area is s, like the default state.
For your states templates, youâll have to remove your custom_field and put your code in state_display:
Edit: This ^^^ was wrong, youâll have to put everything in the main state_display
thanks for confirming, will have a rewrite day today now
not to re-iterate on this, but why was it again you were opposed to allowing templates in the state: field, and yet this state_display: field does just that in fact? since it defaults to state: if not provided?
Hi @RomRider, I wonder if itâs possible what Iâm trying to do. I have a template configuration setup (which works great). Now I want to move over popup-cards using browser-mod (instead of global settings, inside each button through call-service). So I have all entities (future and past) use the popup card (in combination with auto-entities and grid card).
The problem Iâm facing now is that I need the template to also fill in the popup part the of code with the same entity. I also use decluttering card for other stuff, which has the option to use [[entity]], this works great with nested cards. I miss this function with the template option of button-card.
This is the hold_action part the the configuration template which has the nested cards.
I tried using this.entity_id but that doesnât work (I think this is not a core feature, but something of auto-entities). Is it at all possible to use nested cards inside a configuration template and passon the same entity? The pop-up does open, but itâs empty. I think because it canât find an entity.
Edit: for the time being I tried this using decluttering-card and made button-card templates as variables within decluttering card. Works great (also with auto-entities and grid card)
I created a template file that loads the custom templates (many copied from examples above). I did a config check and no errors. When I point to the template, no matter which one, I get for example; Button-card template âstandardâ is missing! Not sure what to look for. I have a spit config, and load the templates via the package documentation.
Example of the start of the yaml file.
Example of from others that are helping me understand, but I am missing something (still). Does each button card template need to be in a sperate file?
I am trying to add a link (to navigate back to the main view) to a custom field that is just an icon. It already looks exactly how I want it, but I canât figure out how to add the link.
You canât trigger an action from a custom field, youâll have to embed a card in your custom field with the action on it (it can be a button-card) or assign the action to the main button-card.
I tried that too, but then I had to define the color twice, so that you canât see the embedded card. Is there a way to make the embedded card transparent? Would make the templates easier.
You are not using button-card but the default button from home-assistant. This thread is about the custom button-card from here. So you have to install the custom-card first.
Then once installed and once your type: button changed to type: custom:button-card:
More round
styles:
card:
- border-radius: 25px # change the number here
I understood the circle. I didnât understand how to make it that small.
Is what I am trying to replace. When they changed the naming of the OS / supervisor, etc it no longer fits in the badge. I used this as a glance to see if I needed to apply an update.