DBuit / light-popup-card

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

Fixes use for browser mod and popup-cards #5

Closed jimz011 closed 4 years ago

jimz011 commented 4 years ago

FR: Gonna request something as well:

Btw, excellent work. I will feature your card in my videos when I release my project. Thanks again for everything. (I hope one day you will find the time/willingness to look at the thermostat card)

Greetings Jimz011

DBuit commented 4 years ago

Hello Jimz thank for this! You did the changes in the .js file? or in the .ts file in the src directory? Can you do the changes in the .ts file because the .js file is generated from this source.

I also don't think it is very usefull to clean the generated code because it is not done by a human ;) and will change everytime.

DBuit commented 4 years ago

He Jimz i just tested the card with browser_mod popup with this configuration:

popup_cards:
  light.beganegrond:
    title: ""
    style:
      position: fixed
      z-index: 999
      top: 0
      left: 0
      height: 100%
      width: 100%
      display: block
      align-items: center
      justify-content: center
      background: rgba(0, 0, 0, 0.8)
      flex-direction: column
      margin: 0
      "--iron-icon-fill-color": "#FFF"
    card:
      type: custom:light-popup-card
      entity: light.beganegrond
      icon: mdi:led-strip
      scenesInARow: 2
      brightnessWidth: 130px
      brightnessHeight: 350px
      switchWidth: 110px
      switchHeight: 300px
      scenes:
        - scene: scene.ontspannen
          color: "#FDCA64"
          name: ontspannen
        - scene: scene.helder
          color: "#FFE7C0"
          name: helder
        - scene: scene.concentreren
          color: "#BBEEF3"
        - scene: scene.energie
          color: "#8BCBDD"

and it works for me, do you have something different so i can test that?

DBuit commented 4 years ago

im closing this reqeust. in next release stuff will be fixed or can be configured