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.