But if you look in his third video, advanced animation I think you might be able to fix something.
I use it myself, but then when my heater is on, just slightly turning the icon to right-left in different angels so it appears to be a moving flame, at least with fantasy
So I guess with the right angels at the right percent you could make it speed up.
or maybe it’s possible to do some sort of ramp up in time, no clue right away how to code it, but something like
Since I look through his videos quite often right now, it seems, I will let you know if I find an easier solution to the problem.
Let me know if you find one first:
thank you for spending time on this, much appreciated!
I did some playing around with different animation settings and found out that when not using the option ‘infinite’ , the animation should work only once, but it does not, it just stops when changing from infinite to not infinite.
so I guess there is an issue with the animation itself and not the coding to start with?
I’m not an expert, hence my original question to bypass this issue, just being curious and trying to learn new stuff.
well, I have gotten a lot of help from others, you don’t have to scroll that far up in the thread to find an example, and that turned out to be me fotgotten to reload…
So, to share my mental list to check when things don’t work:
is it something that needs reloading? Sometimes you have to refresh the web page (ctrl+F5) to clear the cashe.
are everything indented as it should? semicolons missing? any other stupid typing misstake, trust me, they are easy to miss…
read the docs… yepp, easy to miss that one too unfortunatley it is not that easy to find answers here on the forum, sometimes it feels like you are spending more time reading than coding…
och, and checked what it says here /in general an excellent side for references, the hard thing if you are new to this is to adapt it to homeassistan)
The animation-timing-function property specifies the speed curve of the animation.
The animation-timing-function property can have the following values:
ease - Specifies an animation with a slow start, then fast, then end slowly (this is default)
linear - Specifies an animation with the same speed from start to end
ease-in - Specifies an animation with a slow start
ease-out - Specifies an animation with a slow end
ease-in-out - Specifies an animation with a slow start and end
cubic-bezier(n,n,n,n) - Lets you define your own values in a cubic-bezier function
I’m kind of new to creating dashboards in Home Assistant, specially with the custom:button-card. As I am a bootstrap geek, I am using the Bootstrap grid card option and it works already solid.
Now I’m facing an easy issue: I want to have a button card with an icon always positioned to the left and next to it a label. Although my dashboard is pretty responsive, when I change views my icon currently is positioning in the center, same for my label. The reason I want to have it always on the same position is because I show a notification icon to indicate if a device is online or offline (like my NAS in the following example)
i am trying to understand the grid a little bit better so I can improve my custom buttons. I have one question where I couldn’t find an answer for. Is it possible to make a grid this way? I am just curious if it is possible
I apologise if this has already been asked, but I am in the process of coding up a button card and I am wanting it so that the background color of the image cell is dictated by the colour of the icon/entity, however I have very limited experience with coding and I can not figure out the correct syntax for the life of me. Currently I just have the colour set to a preset rgba value, so any helpe is appreciated.
So it turns out that if I had of read the documentation a tad more thoroughly I would have come across the note that says light entity colors are referred to in the following way:
var(--button-card-light-color)
This good to know going forward, however my next challenge going forward is to be able to apply a alpha channel to the color. I was hoping the following would work:
rgba(var(---button-card-light-color),0.2)
however I am unable to get this or any other variation to work. I also cant just slap an opacity on the cell because then this will impact the visibility of the icon within it. Does anyone have any thoughts?
I’m setting up a dashboard, where the menu for switching to different views looks like this. Every button has an tap_action. That part is working great. Now i want to have the button(icon) of the “active” view getting a different color.
So it should maybe something as
state == ? than use: background-color: var(--yellow)
yes im using raw yaml editor. how can write my dashboard? I have a file with a template, I add this my new dashboard? and the card? I don’t manage to understand how set raw yaml editor.
thanks for your answer… im trying to create card for my Netatmo valve:
i don’t understand how set my raw yaml editor, because i have the sensors and card.yaml with template.yaml, but I need only the cards in my climate dashboard, I don’t want create a dedicate dashboard .
You already have a dashboard (at least one created automatically on HA setup - it has one “view”).
You may add more “views” in UI to this dashboard.
On each “view” you may add/edit/delete cards - by using UI.
To add button-card-templates into some dashboard you need to open this dashboard, then select “Edit dashboard”:
Then select “raw editor”:
then add your one or several templates before the 1st line here:
this particularly:
Then on any view of this dashboard you may add a button-card with a any of these added templates.
What is a button-card-template, what is it’s purpose - read Docs.