I know @petro implemented something for this. Maybe you could just try to add a delay of 1 or 2 sec at the end of the script, it will stay on for that long in this case and you’ll have feedback.
However, by default on the button itself, when you hit it, there’s a ripple effect displayed.
how could I set a template for the styles: icon: - color, based on the state of another entity, or like below not the state but an attribute of the entity?
with this, my current setup, they turn red when motion sensor state is ‘on’ and grey when not. I’d like them to show green, when in fact turned on (as in being switched on) and this would be the attribute on of that entity.
Should I simply add this as 2nd template under the state section…? First check to turn red on motion, second check green on entity.attributes.on being ‘true’ , third check grey when entity.attribute.on (default) being ‘off’?
Not completely grasp this yet, but please check my second state, the one with the operator for the entity.attributes.on
Even if I use only that, and have no other states defined, it simply won’t check its value to return color green either. Can’t we use entity.attributes.on like that?
fyi, this is the binary_sensor:
state === Off (clear), entity.attributes.on === ‘true’.
You define 4 lines in you grid-template-areas, but you where only defining a row height for 3 of them… It fixes the misalignment
EDIT: actually it’s not , but still you shouldn’t omit a row
EDIT2:
You should add: - text-align: start to all the fields and it will fix alignment issues.
Looks like when ellipsis is used, it doesn’t take into account the justify-self. But you still need to keep justify-self, because when it’s actually not “ellipsed”, it will use justify-self! CSS nightmare
@RomRider you are seriously missing most important feature. Buymeacoffee!!
By far, your effort to this card is THE best custom component or plug-in for HA. This card has best documentation explaining every feature. It’s amazes me how calmly and tirelessly reply to all the questions in this thread. Man, you are a genius.
Help please.
I keep getting this error showing. It only happens with button-card, happens randomly and usually (but not always) goes away if I refresh the page. It happens in Safari, Firefox, ios safari and the ios app. It first happened after I did a full cookies/history clear on Safari a few weeks ago, but it just keeps happening and is getting worse. Installed Firefox yesterday, and while the page worked once, it now shows the error every time.
Since then, I’ve tried deleting cookies again, deleting and reinstalling all custom cards, updating/downgrading cards. I’ve tried searching for a solution but seem to be missing something because most solutions just talk about clearing cache. Is there a way other than deleting cookies/website data?