-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome assistant.yaml
140 lines (140 loc) · 3.13 KB
/
Home assistant.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
type: picture-elements
image: /hacsfiles/homeassistant (3).png
style:
'#root>bar-card':
$: |
ha-card {
background: none;
box-shadow: none;
}
bar-card-name {
color: white;
font-size: 100%;
font-weight: normal;
margin: 4px;
}
bar-card-currentbar {
border-radius: 7pt;
}
bar-card-backgroundbar {
border-shadow: 2pt;
margin-top: -2pt;
margin-left: -2pt;
border-radius: 7pt;
border-style: solid;
background: rgba(255, 0, 0, 0.8);
}
bar-card-value {
font-size: 100%;
color: white;
font-weight: bold;
margin: 5px;
}
elements:
- type: state-label
entity: binary_sensor.rpi_power_status
prefix: 'Power Status Alimentation : '
style:
color: white
font-size: 90%
left: 75%
top: 25%
- type: state-label
entity: binary_sensor.updater
prefix: 'Update Home Assistant : '
style:
color: white
font-size: 90%
left: 75%
top: 20%
- type: custom:bar-card
columns: 5
direction: up
width: 10px
height: 90px
positions:
icon: 'off'
indicator: 'off'
minmax: 'off'
title: outside
value: outside
name: outside
style:
left: 50%
top: 68%
width: 100%
scale: 100%
entities:
- entity: sensor.processor_use
max: 100
min: 0
name: Cpu
margin-top: 2pt;
severity:
- color: '#40bf40'
from: 0
to: 40
- color: '#ffde00'
from: 41
to: 80
- color: '#fd0000'
from: 81
to: 100
- entity: sensor.processor_temperature
max: 100
min: 0
name: Temperature
decimal: 1
severity:
- color: '#40bf40'
from: 0
to: 55
- color: '#ffde00'
from: 55
to: 75
- color: '#fd0000'
from: 75
to: 100
- entity: sensor.memory_use
max: 8096
min: 0
name: Memory
decimal: 0
severity:
- color: '#40bf40'
from: 0
to: 4000
- color: '#ffde00'
from: 4001
to: 5500
- color: '#fd0000'
from: 5501
to: 8096
- entity: sensor.disk_use_percent_home
max: 64
min: 0
name: Disk
decimal: 0
severity:
- color: '#40bf40'
from: 0
to: 25
- color: '#ffde00'
from: 25
to: 50
- color: '#fd0000'
from: 50
- entity: sensor.swap_use
max: 1024
min: 0
name: Swap
decimal: 0
severity:
- color: '#40bf40'
from: 0
to: 640
- color: '#ffde00'
from: 640
to: 768
- color: '#fd0000'
from: 768