-
Notifications
You must be signed in to change notification settings - Fork 40
/
button_border.yaml
41 lines (40 loc) · 906 Bytes
/
button_border.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# ______ _
# | ___ \ | |
# | |_/ / ___ _ __ __| | ___ _ __
# | ___ \/ _ \| '__/ _` |/ _ \ '__|
# | |_/ / (_) | | | (_| | __/ |
# \____/ \___/|_| \____|\___|_|
# Entity to control
entity: light.example
# Icon to display
icon: "mdi:lamp"
# Button actions
tap_action:
action: toggle
haptic: light
hold_action:
action: more-info
haptic: medium
styles:
card:
# Feel free to change the size here
- width: min(20vw, 60px)
- height: min(20vw, 60px)
icon:
- color: var(--primary-text-color)
state:
- value: "on"
styles:
card:
- border-style: solid
- border-width: 2px
- border-color: var(--paper-item-icon-active-color)
- box-shadow: var(--soft-ui-pressed)
icon:
- color: var(--paper-item-icon-active-color)
show_icon: true
show_name: false
card_mod:
class: soft-ui
type: "custom:button-card"