-
Notifications
You must be signed in to change notification settings - Fork 4
/
storage_card.yaml
102 lines (102 loc) · 2.56 KB
/
storage_card.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
type: custom:stack-in-card
cards:
- type: custom:button-card
entity: sensor.internal_available_space
show_icon: false
name: Internal Storage
styles:
card:
- border-radius: 20px
- border-style: none
- box-shadow: 0px 0px 10px -9px black
grid:
- grid-template-areas: '"icon_cells icon_cells" "n n" "value value_2"'
- grid-template-columns: min-content 1fr
- grid-template-rows: min-content min-content
name:
- justify-self: start
- align-self: start
- font-size: 90%
- font-weight: bold
- margin-left: 15px
- margin-top: 5px
custom_fields:
icon_cells:
- justify-self: start
- margin-top: 12px
- margin-left: 15px
value:
- justify-self: start
- align-self: start
- font-size: 60%
- font-weight: normal
- margin-right: 17px
- margin-left: 16px
- margin-top: 15px
- filter: opacity(70%)
value_2:
- justify-self: end
- align-self: start
- font-size: 60%
- font-weight: normal
- margin-right: 17px
- margin-left: 17px
- margin-top: 15px
- filter: opacity(70%)
custom_fields:
icon_cells: |
[[[
return `<ha-icon
icon="ssb:hard-drive"
style="width: 25px; height: 25px; color: auto;">
</ha-icon>
`
]]]
value: |
[[[
return `<span>
${states['sensor.internal_available_space'].state}B Free</span>
`
]]]
value_2: |
[[[
return `<span>
2.1GB</span>
`
]]]
- type: custom:bar-card
height: 10px
color: '#2192FF'
entities:
- entity: sensor.disk_use_percent
positions:
name: 'off'
icon: 'off'
indicator: 'off'
minmax: 'off'
title: 'off'
value: 'off'
style: |-
.contentbar-direction-right {
flex-direction: column;
}
bar-card-card {
border-style: none;
}
bar-card-currentbar, bar-card-backgroundbar {
border-radius: 15px;
} ha-card {
background-color: transparent;
box-shadow: none;
border-style: none;
margin-top: -21px;
margin-left: -2px
margin-bottom: 0px;
}
card_mod:
style: |
ha-card {
border-radius: 20px;
border-style: none;
box-shadow: 0px 0px 10px -9px black;
}