Closed filikun closed 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:?
light.toggle
color:
actions:
Like this:
[[[ if (states['light.test'].state == 'on') return 'red'; else return 'black'; ]]]
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 thecolor:
parameter onactions:
?Like this: