Blinkende custom:button-card

Kuman Raspberry Pi 3.5 inch Touchscreen Stift TFT Monitor LCD Display 320*480 Resolution with Protective Case + 3 x Heat Sinks+ Touch Pen for Raspberry Pi 3B+, Pi 2 Model B & Pi Model B SC11
Kuman Raspberry Pi 3.5 inch Touchscreen Stift TFT Monitor LCD Display 320*480 Resolution with Protective Case + 3 x Heat Sinks+ Touch Pen for Raspberry Pi 3B+, Pi 2 Model B & Pi Model B SC11
--

Passend zum Artikel (Blinkendes Badge-Icon) hier ein Beispiel für eine blinkende custom:button-card.

Beispielweise, wenn jemand an der Tür klingelt…

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