DBuit / light-popup-card

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

Change scene button based on state #65

Closed filikun closed 3 years ago

filikun commented 3 years ago

Hey I would love to change the scene buttons based on the state of light. I the popup card for the whole room and the scene buttons for individual lights with a light.toggle. Is it possible to somehow customize the color: parameter on actions:?

Like this:

          [[[
          if (states['light.test'].state == 'on')
            return 'red';
          else
            return 'black';
          ]]]

image