This bug is present since a while now, I believe this bug was introduced with an update in 2023.4.x update. I still am on that version (since many things on frontend broke after 2023.5 and I need time to resolve those changes before updating). But I can confirm this is an old bug, that I think happened because of yet again new frontend changes with 2023.4.x somewhere.
Thanks for your answer!
Hopefully someone can fix the slider button code, so we can use it in the current HA versions.
Sadly I don’t have enough coding skills to fix it myself.
But how do i customise it so the background has a slight of opacity?
I want background when state is “on” to be white with opacity :: rgba(255,255,255,0.3)
and when state is “off” to be black with opacity :: rgba(0,0,0,0.3)
Looking for some expertise and/or suggestions. It seems my slider button cards are not reflecting the correct color in the on state compared to other cards i.e. entity card. I have a white LED strip which shows the correct on state color of white, while the slider button shows the default color. Changing use_state_color makes no difference. (see below as examples: Slider Card vs. Entity Card)
Trying to get this working but can’t make the slider-track transparent.
I see the background image behind but the slider-track remains white instead of transparent.
also tried rgba(0,0,0,0), no success.
@HellfireZA did you manage to make this work ? @lizsugar anything else I could try vs below or maybe some typo (newbie here).
Opacity was a good lead but unfortunately your solution is driven by the “ha-card” opacity.
Essentially it make the whole card transparent and “host” opacity values just make each element more or less transparent vs the full card opacity. In other words, If you keep ha-card opacity at 1, the dashboard background won’t show even if you play with “host” opacity values.
I could definitely be wrong so feel free to comment.
Even then, I’ve tried every combination possible but still could not set the slider-track (the “inactive” part of the slider) to a transparent state (or any color in fact).
Would you mind sharing the code for your examples you created with my-slider-v2. I’ve been trying to do exactly what you have but with Deejayfool/hass-shutter-card.
Using card_mod I can get close to what I want but just have some issues with sizing and alignment. I really like what you have. Thanks.
I can not seem to figure it out, is it possible to display ‘secondary info’ in the card ? For example a dimmer with it’s actual power consumption, which is a separate entity.
Love this. I am trying to use it for media players currently, and while it seems to work perfectly, I get an error popping up whenever I make a volume change.
Failed to call service media_player/volume_mute. unknown error
This is the code (although generated through the UI)
I’m trying to dial in a climate slider. I’d like to be able to reflect the set vs current temperature. Currently I can do that, but it’s not formatted very nice.
Ideally it would show ‘set F | current F’ or something similar. Whereas right now it’s showing ‘set F | Heat* - current’
*I’m guessing ‘heat’ is showing the HVAC state which is not important as this is heat only.
If I add show_state: false it will not show 'set F | Heat* - '. Is there any way to string together attributes under the 'attribute: ’ line? ‘temperature’ is another attribute, but I don’t know how/if you can string together the attributes and add anything inbetween, like a template kind of thing.
Is there a way to “flip” the colour to the other side? I am using an input_number slider to set the value of a cover (blinds) and the blinds use that system where 0% = closed and 100% = open. Which means in order to make the slider appear like the blinds do, I need to flip the direction (either bottom to top OR right to left) and then I need to flip the side of the slider that has the shading. I hope that makes sense. Here’s a screenshot to further explain what I mean. If the input_slider is set to 40% (as shown) then then the blinds will be 40% open. Numerically this is correct. But I want the shaded part to appear as the blinds do. I’d like the area that is “black” to be shaded blue, and the area that is shaded “blue” to be black - to give the appearance of the blinds position.
Never mind, I should have read the docs first. For those trying to do the same thing, switch to yaml (instead of the UI editor) and add the following line to the `slider’ options:
I have an icon visible in compact mode with a horizontal slider. The tap action on the button is set to none. When trying to swipe in the lower percentages where the icon is, the icon still acts like a touchable button, even though it doesn’t have any action.
Is it possible to make it totally invisible to touches so that I can swipe through it?