@eager radish The Entities card has gone through a couple of revisions and some of the information found in the forum doesn't work any more. When trying to figure out how to make this work, I found the example code that you used and I found a post where another user posted the same question as yours back in January. I pieced together information from a couple of posts to make this work.
#Disabling slider in Entities card
1 messages · Page 1 of 1 (latest)
type: entities
entities:
- entity: input_number.automation_auto_bathroom_lights_duration
card_mod:
style:
ha-slider:
$: |
input[type="range"] {
pointer-events: none !important;
}
.: |
:host {
--paper-item-icon-color: var(--disabled-text-color) !important;
--md-slider-active-track-color: var(--disabled-text-color) !important;
--md-slider-inactive-track-color: var(--disabled-text-color) !important;
--md-slider-handle-color: var(--disabled-text-color) !important;
color: var(--disabled-text-color);
pointer-events: none !important;
}```