@jschafermo I did not realize it before, but I noticed today, that you were running 2023.11b1; I was still on 2023.10.x when you originally posted and my card worked fine. Now, Iām on 2023.11.1 and my card_mod is broken. I did some work with it today and figured out most of the new syntax and made some improvements.
Update: I have it working. I had posted the code into a manual card for testing which didnāt work. Once I notice my mistake and posted the code into an entities card, slider color changes worked!
hi Derek, noticing you use the direct element name variable here, which I also found in the inspector after the move to the new material elements in 2023.11.
md-slider-active-track-color: green
md-slider-inactive-track-color: yellow
md-slider-focus-handle-color: black
md-slider-pressed-handle-color: white
md-slider-handle-color: pink
md-slider-hover-handle-color: orange
md-slider-handle-shadow-color: red
md-slider-label-container-color: grey
md-slider-label-text-color: purple
all work in theme now.
however, cant find a variable for the container itself. would be a pity if we needed card_mod for that after all
Hi, Iām using the slider entity row for quite a while now.
So far itās been working great, but today I noticed something strange.
Normally when I slide the slider, it will show the values as you slide, so you know where you are. But that value appears to be missing now.
Not sure exactly when this started.
Iām running:
Core 2023.11.1
Supervisor 2023.11.3
Operating System 11.1
Frontend 20231030.1
The card in question:
type: custom:slider-entity-row
entity: input_number.kantoor_target_temperature
name: Set temp kantoor
icon: mdi:temperature-celsius
Probably because you are using the card not inside Entities card - as it is supposed to be.
May be the card is placed inside a vertical-stack which does not have ha-card - that is why your style is ignored.
Ok and how would I have to adjust the YAML code so that the state is adjusted accordingly in the style? Unfortunately, Iām not that fit in YAML as Iām just starting out with it
As I said, the card is supposed to be used in Entities card.
If you want to use it in a stack - then you need to wrap your card into mod-card (see Docs in card-mod repo) and style it accordingly (find examples with mod-card in repo), and these efforts are not worth it.
Is it possible to add a ā+ā and ā-ā button to a slider to allow the user to increase stepwise rather than with the slider (for when he/she wants to make smaller steps/precision steps)?
So do card_mod and layout-card. The latter two can solve almost anything.
But getting it all to work correctly and making the layout fitā¦ it would be difficult to make the result as clean as a implementation in the card.
Since this is not that unusual or unrealistic to have (thermostat card e.g. has this also), I am hoping Thomas will find the time and will to add it as a feature