Can't get Bubble Card to change it's colours

I’m using Bubble Card from @Cloos and all is just peachy but try as I might I can’t get the colours to change.
I’m getting a nice yellow when (say) a switch is on and a subtle grey when its off but I’d like to highlight some switches differently. Maybe Red when it’s on and Blue when it’s off etc.
I’ve setup a really simple single entity card for testing but try as i might when I adjust anything in the Styling options nothing changes. I mean the switch still works but it’s yellow/grey no matter how I set it.
I’ve noted I need to clear the cache which I have done repeatedly - but nothing changes.
Anyone have a clue what I’m doing wrong?

Hi! Can you share the custom style/template you have tried?

Sure, here it is:

type: custom:bubble-card
card_type: button
entity: input_boolean.user_presence_nick
name: Nick
button_action:
tap_action:
action: toggle
styles: |-
type: custom:bubble-card
card_type: button
entity: input_boolean.user_presence_nick
name: Test
styles: |
.bubble-button-background {
opacity: 1 !important;
background-color: ${state === ‘on’ ? ‘blue’ : ‘red’} !important;
}

Sorry to ask again but I just can’t seem to fathom this one @Cloos any help you can give much appreciated.

I can make the color change in light entities but it doesn’t work for me in switch entities. Not sure if I’m doing it right, I’m new to BubbleCard.

More info, the switch card keeps the new color when it is off. Once it is on it stays in the new color briefly (about half a second) and then changes to the default color (orange).

Apologies for the delay. Been away on vacation.
I’ still in the same situation, I only ever see default orange (or is it yellow?) no matter what I try.
Hopefully there is a Bubble Card genius out there that can help us ?

There is an update in Bubble Card, I have just installed it. I will try again later on to check if we have more colors than the orange :sweat_smile:

Yes, I noticed this as well. I’ve installed it but still can’t get mine to change colour as yet - still trying though. Will report back !

Well, I’ve tried with the new version and I still can’t get any colour change !

Ya I also cannot get my color to change over, stuck with the orange

Same boat, although I have some Zigbee switches that seem to change colour.

Hi, I’m new to Home Assistant and have started using Bubble Card. I’m experiencing the “orange/yellow” background on my entity buttons as well? I’m hoping on this boat too.

There have been a few updates but still no fix. The brands of switches I am using are Sonoff, Aqara and Ikea.