Passend zum Artikel (Blinkendes Badge-Icon) hier ein Beispiel für eine blinkende custom:button-card.
Beispielweise, wenn jemand an der Tür klingelt…
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type: custom:button-card
name: Klingel
entity: switch.tp_link_01
aspect_ratio: 3/1
color_type: card
layout: vertical
show_last_changed: true
state:
- color: red
icon: mdi:bell
name: Es hat gekligelt!
styles:
card:
- animation: blink 2s ease infinite
value: 'on'
- color: '#d4d4d4'
icon: mdi:bell
operator: default