I have one more question.
Is there an option to reflect a press on a button? I mean in case when a button is executing a script and does not have on and off states, just to change for a second a then go back, to be sure that ui got my tap.
It is really missing for example on a wall tablet when something supposed to happen in another room.
Would be nice.
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?