Hi All. I use the following for my garage door setup, but would like the color to flash after I tap the card until the garage door either closes, opens or X seconds. This would represent closing or opening status indicating to the user there is request in flight. Any help?
type: custom:button-card
entity: binary_sensor.garage_door_contact_contact
show_icon: true
show_name: false
styles:
card:
- height: 200px
tap_action:
action: call-service
service: switch.turn_on
service_data:
entity_id: switch.garage_door_button
icon: hass:garage
show_state: true
state:
- value: 'on'
icon: hass:garage-open
color: rgb(255,0,0)
- value: 'off'
color: rgb(68,115,159)