Blinkende custom:button-card

Echo Dot (4. Generation) | Smarter Lautsprecher mit Alexa | Blaugrau
Echo Dot (4. Generation) | Smarter Lautsprecher mit Alexa | Blaugrau
--

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