Short Version: I cannot figure out what icon background color the mushroom card is using for the icon. I want to use that same background color on the bubble card icon.
Long Version:
I am trying to use Bubble cards to help condense some functionality on my dashboards. To be specific, I am currently trying to produce a bubble card that shows a door's status (open/closed) on the left (with dynamic color/icon) and has a sub-button on the right side to lock/unlock (with dynamic color/icon). The functionality is mostly easy to achieve following documentation. There are two issues with the result:
- the Bubble card styling does not match my other mushroom cards (edges, colors, etc.)
- the icons are not dynamic (and I need to figure out how to achieve that)
Any advice is welcomed.
current bubble card configuration:
type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.garage_exterior_door_opening
sub_button:
- entity: lock.garage_door_lock
name: ""
show_last_changed: false
show_state: false
show_icon: true
show_background: true
tap_action:
action: toggle
layout_options:
grid_columns: 2
grid_rows: 1
scrolling_effect: false
show_last_changed: false
show_state: false
card_layout: large
styles: |-
.large .bubble-button-card-container {
border-radius: var(--ha-card-border-radius, 12px);
background-color: var(--card-background-color, #fff);
border-color: var(--ha-card-border-color,var(--divider-color,#e0e0e0));
border-style: solid;
border-width: var(--ha-card-border-width, 1px);
border-radius: var(--ha-card-border-radius, 12px);
}
.bubble-sub-button-1 {
background-color: #224422;
}
.bubble-icon-container {
background-color: #2a2a2a;
}
name: Garage Exterior