Skip to content

problem on background #1177

Jan 23, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Something like this?

.bubble-button-background { background: transparent !important; }

type: custom:bubble-card
card_type: button
button_type: switch
entity: lock.nuki_porta_fronte_bocchio
name: Porta Ingresso
card_layout: large
sub_button:
  - entity: sensor.nuki_porta_fronte_bocchio_batteria
    show_state: true
    show_attribute: true
    show_icon: true
    show_background: true
    state_background: true
styles: |
  .bubble-button-background { background: transparent !important; }

  .bubble-icon {
    color: ${hass.states['lock.nuki_porta_fronte_bocchio'].state === 'locked' ? 'red' : 'green'} !important;
  }  

  .bubble-icon-container {
    background-color: ${hass.states['lock.n…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by platini76
Comment options

You must be logged in to vote
1 reply
@Menelao147
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment