-
Notifications
You must be signed in to change notification settings - Fork 7
/
vacuum.yaml
257 lines (257 loc) · 8.58 KB
/
vacuum.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
background: center / cover no-repeat fixed url('/local/lovelace/bg_long.png?v=1')
kiosk_mode:
mobile_settings:
hide_header: true
views:
- icon: 'mdi:robot-vacuum'
panel: false
badges: []
cards:
- type: vertical-stack
cards:
- type: 'custom:button-card'
size: 25px
icon: 'mdi:close'
tap_action:
action: navigate
navigation_path: /lovelace/0
styles:
card:
- width: 40px
- height: 40px
- background-color: 'rgba(255,255,255,0)'
- box-shadow: none
icon:
- margin-left: px
- type: 'custom:vacuum-card'
entity: vacuum.arturito
image: /local/lovelace/arturito_500a.png
show_toolbar: true
show_status: true
compact_view: false
show_name: true
stats:
default:
- attribute: filter_left
unit: hours
subtitle: Filter
- attribute: side_brush_left
unit: hours
subtitle: Side brush
- attribute: main_brush_left
unit: hours
subtitle: Main brush
- attribute: sensor_dirty_left
unit: hours
subtitle: Sensors
cleaning:
- attribute: cleaned_area
unit: ft2
subtitle: Cleaning area
- attribute: cleaning_time
unit: minutes
subtitle: Cleaning time
card_mod:
style: |
ha-card {
width: 95%;
margin: auto;
/* margin-right: 14px;
margin-left: 15px; */
border-radius: 12px !important;
}
.preview {
background: rgba(255, 255, 255, 0.3) !important;
background: url('/local/lovelace/wood_floor.png') !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover;
}
.vacuum {
image-rendering: auto !important;
}
.vacuum.docked {
filter: grayscale(1);
opacity: 80% !important;
}
.header {
background: rgba(0, 0, 0, 0.3) !important;
}
.stats {
background: rgba(0, 0, 0, 0.3) !important;
}
.status-text {
color: rgba(0, 0, 0, 0.7) !important;
font-weight: bold;
font-size: 16px;
}
.battery {
font-weight: normal !important;
}
.toolbar {
background: rgba(255, 255, 255, 0.7) !important;
}
.toolbar ha-icon-button {
color: rgba(0, 0, 0, 0.7) !important;
}
.toolbar paper-button {
color: rgba(0, 51, 204, 1) !important;
}
.toolbar ha-icon {
color: rgba(0, 51, 204, 1) !important;
}
- type: 'custom:mod-card'
card_mod:
style: |
ha-card {
width: 95%;
margin: auto;
}
card:
type: horizontal-stack
cards:
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Front
entity: switch.vac_front
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Family Rm
entity: switch.vac_family_rm
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Kitchen
entity: switch.vac_kitchen
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Office
entity: switch.vac_office
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
entity: vacuum.arturito
- type: 'custom:mod-card'
card_mod:
style: |
ha-card {
width: 95%;
margin: auto;
}
card:
type: horizontal-stack
cards:
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Master
entity: switch.vac_master
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Josh's
entity: switch.vac_josh
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Guest
entity: switch.vac_guest
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Cruz's
entity: switch.vac_cruz
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
entity: vacuum.arturito
- type: markdown
content: >
<strong>Tasks to complete: {{ states('counter.vac_tasks')
}}</strong>
card_mod:
style: |
ha-card {
background: rgba(0,0,0,0);
box-shadow: none
}
- type: picture-glance
entities: []
camera_image: camera.arturito_map
card_mod:
style: |
ha-card {
width: 95%;
margin: auto;
/* margin-right: 14px;
margin-left: 15px; */
border-radius: 12px !important;
}
.box {
background: rgba(255,255,255,0) !important;
}
- type: 'custom:mod-card'
card_mod:
style: |
ha-card {
width: 95%;
margin: auto;
padding-bottom: 10px !important;
}
card:
type: horizontal-stack
cards:
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Daily
entity: switch.vac_daily
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
- type: 'custom:gap-card'
height: null
size: null
- type: 'custom:gap-card'
height: null
size: null
- type: 'custom:button-card'
aspect_ratio: 2/1
card_size: 4
name: Reset
entity: switch.vac_reset
show_icon: false
styles:
card:
- background: 'rgba(255,255,255,.1)'
title: Vacuum