Switch color different to Slider color #1302
Closed
Unanswered
StormFusion
asked this question in
Questions about config, custom styles and templates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Living Room is a Slider, Dining room is a switch, why is the SWITCH color lighter than the Living Room, despite attempting different color settings in the YAML it reminds lighter than the slider buttons, is there a way to fix?
`type: custom:bubble-card
card_type: button
entity: light.dining_room
use_accent_color: false
show_state: true
show_last_changed: false
show_attribute: false
card_layout: normal
button_type: switch
slider_live_update: false
hold_action:
action: more-info
double_tap_action:
action: none
scrolling_effect: false
show_icon: true
icon: mdi:lightbulb
tap_action:
action: toggle
grid_options:
columns: 12
rows: 1
styles: >-
.bubble-icon { color: ${state === 'on' ? '#FFFFFF' : '#4C4C4C'} !important;
}
.switch-button { background-color: ${state === 'on' ? '#546373' : '#2C2C2C'}
!important; }
sub_button:
action: none
hold_action:
action: none
icon: mdi:motion-sensor
entity: switch.hue_motion_sensor_9_motion_sensor_enabled
double_tap_action:
action: toggle`
Beta Was this translation helpful? Give feedback.
All reactions