View difference between Paste ID: kDj4pXvB and uuzyMWSH
SHOW: | | - or go back to the newest paste.
1
show_name: true
2
show_icon: true
3
type: custom:button-card
4
tap_action:
5
  action: toggle
6
entity: input_boolean.postkasse
7
state:
8
  - value: 'on'
9
    styles:
10
      card:
11
        - '-webkit-box-shadow': 0 0 0.95rem 0.2rem rgb(0, 128, 0)
12
        - box-shadow: 0 0 0.95rem 0.2rem rgb(0, 128, 0)
13
        - transition: all 2s ease
14
        - background-color: transparent
15
      icon:
16
        - color: green
17
        - animation: blink 2s ease infinite
18
  - value: 'off'
19
    styles:
20
      card:
21
        - background-color: transparent
22
      icon:
23
        - color: red
24