Skip to content

Disable slider functionality for some buttons? #1066

Discussion options

You must be logged in to vote

something like :

type: custom:bubble-card
card_type: button
button_type: state
entity: cover.test_cover_cover
styles: |-
  :host{
      --color-ok: #36A1D3AA ;
      --color-bar: var(--color-ok);
      --color-background: var(--bubble-button-main-background-color, var(--bubble-main-background-color, var(--background-color-2, var(--secondary-background-color))));
  }

  .bubble-button-card-container {
      background: linear-gradient(
    to right, 
    var(--color-bar) 0%, 
    var(--color-bar) ${Math.round(hass.states['cover.test_cover_cover'].attributes.current_position)}%,
    var(--color-background) ${Math.round(hass.states['cover.test_cover_cover'].attributes.current_position)}%,
 …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Thyraz
Comment options

@MrBearPresident
Comment options

@MrBearPresident
Comment options

Answer selected by Thyraz
@Thyraz
Comment options

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