ok, please don’t feel pressed
Would be cool if you could fix the ‘flickering’, otherwise we just have to be very precise when clicking.
about the coloring, @petro, didn’t you use some special config option to do in your buttons. Seem to recall a special click effect of sorts, but can’t your posts about that now…
I was just trying to show visual feedback after a script/button was pressed. Basically used a delay of 250 ms in the script as a hack. haven’t tried anything else yet.
For the life of me I can’t figure out how to template this card.
Any help would be appreciated.
Maybe even also show me how I would list the unused lines in a love lace view.
Thanks in advance!
EDIT
I finally figured it out.
I’m not sure if there is a better way or not but even this saves ALOT of space.
thank You so much for this card and the work you put in it!!!
Hi, I would like to use this card to embed my gauge and dual gauge cards, this will give me much more control of the sizes etc as I am using this card for many other things on my UI. I tried to do this the same way as embedding a graph but I couldn’t get it working. Does anyone know if this is supported?
I ended up putting the ‘state template’ in a label instead of a custom field which seems to work perfectly without using a layout grid.
Not sure if this is the most elegant way to achieve this but thought I would post the final code which can hopefully help someone else with similar requirements.
Hi, very flexible card! Thank you.
May I ask a little help?
I have a momentary switch, and would like to change the icon and the color of the icon based an binary sensor state. (the button open-close a door, and there is a sensor about the door state, and would like to see the door state on the button card).
How can I do it?
Thank you
Not using the slider right now, but this has all options in it, either active, or commented out. If you want o change the times displayed on the button, change the grid-template-areas and styles accordingly:
not this also has a popup card using browser-mode. You can easily take that out if you want eg a simple and native more-info. The code is all in this example. I should have taken out all label options here, since I don’t use that anylonger, but it doesn’t harm, so didn’t bother yet.
Amazing work! It’s just awesome!
But I have a question, is it possible to add gradient to the button card background?
I’ve trying to do so but I’m a bit lost on that.
Thanks in advance
Is there a way to make it so that when button is pressed it makes a color to illustrate that its being press down.
I find that this could be usefull for some switches were i have Harmony activity switches and whant to show that ive acualy pressed the button so i know the activity is about to start before i klick again.
This is just one example of many were i have buttons that has a script on them that makes allot of stuff were it take abitt of time before it turns on and then gets a color.
I could not find a answer to this when i search so hope any of you might have a answer.
Only way to do this at the moment is by adding a delay to the script. This will give the script a momentary ‘on’ state which will make the button light up.
Otherwise this is something that @RomRider has not found a solution to yet.