Providing assistance is about back and forth to understand what you are trying to achieve. To suggest othewise is not understanding how assistance works.
Anyhow, perhaps what you are after is using a theme default like my-var-default: xxx and then using var(--my-var-default) when you want that default.
hardcoding default that comes from theme or card config is unnececery redundancy I would like to avoid. It includes usage of vars of course. And if you changing more values than color, it requires to do the same fo all styles being overriden by a card
Hi all
How can I get a human-friendly value from the value provided by the sensor of the duration device_class?
For example, 1.5 should be displayed as 01:30.
Is there any helper I missed? I'm aware about formatTime() and parseDuration() helpers but I don't think these are right ones. I did it regular JS-way. But I'm wondering if there is a built-in method.
I'm trying to move as much as possible to the tile card, but it doesn't have all the necessary functions yet. Is anybody here that has a button card config that looks exactly the same as the tile card, so i can use both on the same page without having any visual differences?
I just came to a similar conclusion. I tried to force "computed" visibility into card's definition but still no dice. So must be read before the custom button can do anything with it
Haha.. There's so many button-card things I would love to see in ALL cards.
If only all cards would have such fantastic, easy and efficient "style:" commands, we could stop fiddling around with CSS in card_mod (which I also think is great btw )