DBuit / light-popup-card

Lovelace card to use as custom pop-up for light in homekit style
168 stars 38 forks source link

Slider Does not work for Cover Entity #69

Closed 400HPMustang closed 3 years ago

400HPMustang commented 3 years ago

So this is how I have my popup card set up. The card pops up and shows the shade position correctly on the slider, currently 50% however the percentage at the top shows 0%. Additionally, moving the slider does not control the shade at all.

Is there something else that needs to be added for shades or does the card just not work with cover entities?

https://imgur.com/a/o4bAQTB

cover.dining_room_right:
    style:
      $: |
        .mdc-dialog .mdc-dialog__container {
          width: 50%;
        }
        .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
          width: 50%;
          box-shadow:none;
        }
      .: |
        :host {
          --mdc-theme-surface: rgba(0,0,0,0);
          --secondary-background-color: rgba(0,0,0,0);
          --ha-card-background: rgba(0,0,0,0);
          --mdc-dialog-scrim-color: rgba(0,0,0,0.8);
          --mdc-dialog-min-height: 100%;
          --mdc-dialog-min-width: 100%;
          --mdc-dialog-max-width: 100%;
        }
        mwc-icon-button {
          color: #FFF;
        }
    card:
      type: custom:light-popup-card
      icon: mdi:blinds
      entity: cover.dining_room_right
    title: Shade Position
400HPMustang commented 3 years ago

Nevermind. Found the popup cover card