#Pvt Gump I figured out there colors
1 messages · Page 1 of 1 (latest)
The colors will not update while editing. The changes won't take affect until you click Save.
type: entities
entities:
- entity: light.hallway
type: custom:slider-entity-row
name: Hallway 2
toggle: true
hide_state: false
style:
slider-entity-row:
$:
ha-slider:
$:
'#sliderKnob.slider-knob': |
.slider-knob-inner {border: 1px solid white}
.slider-knob-inner {background-color: white}
paper-progress:
$: >
#primaryProgress{background-color: red}
#progressContainer {background-color: blue}
ha-entity-toggle:
$: |
ha-switch {
--switch-unchecked-button-color: red;
--switch-checked-button-color: green;
--switch-unchecked-track-color: red;
--switch-checked-track-color: green;
}
```UPDATE 20230815: At some point, something must have changed because the sliderKnob would not show the color I defined. Had to update from `'#sliderKnob': |` to `'#sliderKnob.slider-knob': |`
I can't take credit for all of this. I found a post were maskazz totally changed the design of the slider. https://community.home-assistant.io/t/slider-entity-row-add-sliders-to-entities-cards/140452/202
I basically ripped apart what when made just to get the slider colors set. (Note: his design doesn't use the "dot" but rather the background around the dot to make the square.
I also used Ildar_Gabdullin's post to set the toggle's colors. https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1402
There's some more examples and options in his post.
Also, Kabala's post where he changed the color of the toggle but also incorporated the custom:multiple-entity-row card and then the custom:slider-entity-row under it. https://community.home-assistant.io/t/slider-entity-row-add-sliders-to-entities-cards/140452/210
tyvm for this info!
I posted our slider modifications to the forum: https://community.home-assistant.io/t/slider-entity-row-add-sliders-to-entities-cards/140452/275?u=d_sellers1