Open HAlover99 opened 3 months ago
Hi, you need to use this custom style instead, this example is from the Templates section in the documentation.
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === 'on' ? 'blue' : 'red'} !important;
}
Ciao,
I try to modify the color conditionally with state, when the state it's off works fine... when the state it's on... the color change to orange but after 1 second rewrite with default ( light-blue ) color, in below the configuration and video.
https://github.com/user-attachments/assets/b943b3f6-3473-484f-9122-968c9f4e6a55