Has something changed with transition effect? Since a few updates ago (I think 2021.12) this doesn’t work anymore. I haven’t changed anything in my code or setup but the transition suddenly is gone. I used this: transition: all 0.5s ease when a entity changed between states, which applied filter: grayscale(100%) blur(17px) in a transition.
and most other fields I tested.
Is there a reason I can not set it on border-color? Ofc I tried a fixed color in the button-card template, to see if it is placed correctly, and that too works just as expected.
there’s no conflict in the other templates.
please help me out? thanks
update
fix it. turns out if one doesnt add border-style nothing shows… and as I replaced shorthand border: 2px solid red to use the template, and thus individual keys for the border properties, I had lost that…
Based on an integration of our local bus company (De Lijn), I have created the following button card that conditionaly displays when the next bus is expected with more than 5 minutes delay:
Here is the code for the ones who are interested. Just know that, to get there, I had to create some templates to convert the integration data (which is bus-stop centered) into these “next bus-centered” sensors.
I am not unhappy with the result, but would like to find a way to make the entity_picture bigger within its allocated space: I have the feeling there is too much padding I cannot remove.
Any suggestion?
This is not the correct code for actions on front-end according to the docs at least. Some updates ago HA updated the backend service calls and added target (for automations and scripts) but somehow the front-end still operates as before. So it can be confusing if you’re new and haven’t used it the old fashion way. The normal button-card should also use the old way however (so strange it works) My guess is custom button card only works the old way (all my cards use the old way).
According to the docs all front-end actions are still the same way as before (and not the same as automations from backend) : Actions - Home Assistant
Remove target and it should work. Follow the example, so it should be:
I’m trying to implement button_card_templates in lovelace Custom Stategies but I can’t use them and my page return the error “Button-card template ‘rooms_subheader’ is missing !”
I tried to include them from YAML and UI but it’s the same result…
does work however. the technique of string manipulation seems to make a difference, I dont understand yet, and if anyone could educate me here, I would certainly appreciate that.
In case you hadn’t seen it, there’s this custom card: Select list Card . And in case you hadn’t managed to solve your use-case yet, I believe (about to try adding dropdowns myself tonight/tomorrow) , add a custom field, then set that custom field up as a card… boom. It works or you spend hours trying to get it to work.
This looks like it could be a nice way to have my current AdGuard pause functionality in a button card, I was not aware of this nesting.
But somehow it does not work.
Currently I use an input boolean (as a switch in lovelace) and a timer to pause AdGuard for 30 minutes, and reactivate once the timer has reached zero:
But if possible I would of course put that in a single fance button card
So with your example of the timer inside the button card, I tried to start as simple as possible with my input boolean and the timer:
But somehow the timer thing does not work, while the button changes the input boolean as intended and the timer actually starts, the card stays with that object placeholder:
this doesnt happen often, but for the life of me I cant understand why a button shows an icon that isnt explicitly set, or is inherited from the domain or entity itself for that matter:
same happening on a switch, nb with device_class switch. showing the flash icon while the frontend should be showing toggle/off
@romrider, sorry for this silly question, but doesnt button card follow backend icon settings by default? Or has is just not adjusted to the new frontend pr that were merged lately
I’m trying to get the name and state of an entity horizontally aligned within this button. Unfortunately, layout: name_state doesn’t do what I want, since it just crams the two together: