Hi @Dolores,
strange - it works flawlessly for me.
I also witness the effect that > is replaced by | (pipe) but this does not break the code. Might be a strange internal handling of the Lovelace UI editor.
May I suggest that you strip your button_card_templates code down to the following fragment.
Place it at the very beginning of the Lovelace raw editor code of some Dashboard view and remove all other button_card_templates.
I recently created a button to toggle my alarmās door chime state, but the feedback on the UI is bad-to-nonexistent. How can I create better feedback?
On the MacOS HA client, whatever rendering engine itās using apparently doesnāt sufficiently support the ripple CSS effect so thereās effectively zero feedback
Even on clients that do support the ripple effect, I get feedback that Iāve tapped the button, but because the state update is so slow (is it happening synchronously if I tap?) the changed state doesnāt reflect on the card for several seconds.
Ideally Iād be able to trigger a state update immediately and see the results of my change, but at a minimum it might be nice to have the icon or something change until the next state updateā¦
One thing I tried, inspired by something elsewhere in this thread is to temporarily hide the icon - is there a way to change it to the horizontal three dots instead, and have it change back to the relevant icon upon the state changing?
EDIT: @Jpsy, today I opened my instance and your simple test was actually workingā¦ weird! Maybe I hadnāt actually fixed it? Thank you again! Rob Coleman fixed my problem below.
Thank you for the help regardless! Iām running the latest version of the button card and Home Assistant 0.116.2 with my lovelace in UI editor mode so Iām quite surprised that anything is different!
Iām hopeful that someone else will have a solution as I am trying to setup a nice tablet dashboard without duplicating code a dozen times. This button is amazing!
This is a crazy old thread, I know, but is there a way to make the map pop up or get bigger when clicked? I know I can change the tap_action to a url but ideally a tap takes you to the person you are interested in.
Both solutions should work, I donāt understand why it wouldnāt. Iām using a lot of the ānot backquoted versionā in my config.
Anyway, happy that it works for you with this way of writing it.
The state of the button comes from home assistant so a tap calls a service, if the state takes 5 sec to update, the button will only reflect the new state after it is updated in HA. This is the expected behavior and thereās not much I can do about it.
You Ƨa however change the ripple effect color:
styles:
card:
- --mdc-ripple-color: blue
- --mdc-ripple-press-opacity: 0.5
Iāll see if I can do something not too dirty to display a sort of optional āprocessingā message for those long state updatesā¦
I have a button to turn on a switch connected to my electric immersion heater. Is it possible to set it so that when i press the button it turns itself off after a set amount of time, for example I press the button to switch on the water heater and after 2,5hrs it switched itself back off without having to press the button again.
Ohh right, that would make sense.
So what Iād like is for it to go red if either input booleans are on (an OR statement). Would you mind suggesting a way to do this please?
Care to share your code? I have a navigation menu myself. I now have created separate bars for each view with altered codes based on the open tab. Your solutions sounds a lot better since I can then just use the same code.