So I have a navigation button that takes me to another screen. This is working great. I want to add some kind of indication on the button that there is a problem that needs attention on the other screen.
Is there a way that I can add a top triangle red notice to the user? In my case an example would be to show the red triangle if automation.master_bedroom_blinds is off. If that automation is on then the red triangle would not show.
The template sets the color of the name with the use of the state: object. Then the template is used by the card.
It causes that
the color of name is set to pink color (which is expected)
the color of the icon remains default (which is not expected, since we expect to set it by the state: defined in the card)
Of course, removing the template from the card immediately makes the icon change color to green.
Worth to mention (while it seems to be clear), that you cannot override the name color in the card too.
The described behavior applies also when overriding is expected between templates.
Is it known behavior? Iâm not aware that this limitation is mentioned in docs. AFAIK most attributes/objects can be overridden
Is it possible to embed a map card or a picture entity card in a button card? I have tried using a grid but every time I add a map or picture as a custom field it locks up my HA dashboard and I need to close and reopen.
Ok, so I know this can be done using a value template, but from what I can tell it can also be accomplished with the state_label in the button card integration. However, I canât figure out why it isnât working for me!
I simply want to remove the decimal points from my humidity sensor (note this is just a work in progress, not the final button). Can anyone tell me what Iâm doing wrong?
Pretty sure it doesnât work because youâre using a glance card as a custom field. So basically this has nothing to do with button-card on itâs own, since the card youâre using as custom field, doesnât support that variable (state_display).
Use a custom:button-card as custom_field card instead.
I want to do that because I use vanilla-tilt.js and it causes some rendering issues with safari browser.
I would appreciate if anyone has some tips for me.
Is it possible to set how long an animation will run for? I have several buttons that just call scripts or automations, so the state of entity is always âonâ. For example, the green button calls a âvacuum specific roomâ script.
Iâd like to be able to click those and have a twisting animation run for 60 seconds or something like that.
Hereâs my working code for an entity that changes state. Just not sure how to do it when clicked and the state doesnât change.
Thanks, that does work for the specified amount of time when a state changes, but when I click the âcall scriptâ button, it doesnât do anything. Probably because the script is always on. I wonder if thereâs a way to trigger the animation from the âzoned cleaningâ property of my robot.
Take a look at triggers_update. If there is an entity that changes state in response to your action you can specify that entity to refresh the button card on state change.
The grid area is wider than 400px, and I would like the cards themselves to sit centered in their respective grid areas. justify-self: center above doesnât seem to work as I expected it to - they stay left oriented.
I struggled with whether to ask this question in the layout card thread, but I donât think the problem can be solved with that card because when I tried to achieve the same desired layout using a series of horizontal/vertical stacks, the cards still stayed left justified.
Picture of what Iâm talking about is attached below. The green boxes show the outline of the grid areas, with the cards themselves sitting on the left.
Iâve been trying to change the last pressed option, of the fan oscillation (30Âș, 60Âș, 90Âș, 120Âș), so it shows the active choice, and helps to show which one is âonâ at the moment, but I have had no such luck.
Does your fan have the state attribute to show which angle is âonâ? If so a simple template at name could be enough to make the font read or something if 90° is the current state attribute.
Thanks for your reply. Unfortunately, margin: auto doesnât seem to have made a difference.
A screenshot with the recommended margin settings is below. Iâve mouse hovered over the card in the âedit dashboardâ mode to demonstrate more clearly how the card doesnât center itself within the grid.