Hi all,
I use custom:button-card to control groups of lights, but when I click it from on>off, or off>on, it does not change colour until all entities have updated. So it looks like nothing is happening.
How can I set it to get the card to either flash in this state, or flash for 5 seconds upon click.
I’ve searched all over and can’t find a solution, I’ve also tried putting in styles on the click but this doesn’t work.
thx
type: custom:button-card
entity: light.flood_lights
name: Flood Lights
icon: mdi:light-flood-down
color: default
color_type: card
layout: icon_name
size: 30px
state:
- value: 'off'
icon: mdi:light-flood-down
color: grey
- value: 'on'
icon: mdi:light-flood-down
color: '#ffcc00'
tap_action:
action: toggle
hold_action:
action: more-info
styles:
card:
- font-size: 18px
- font-weight: bold
- height: 60px
name:
- font-weight: bold
- font-size: 18px