-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui-lovelace.yaml
executable file
·285 lines (273 loc) · 8.96 KB
/
ui-lovelace.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
---
views:
- path: home
icon: mdi:home
cards:
- type: vertical-stack
cards:
# Clock / weather
- type: custom:clock-weather-card
entity: weather.imunic626
forecast_rows: 6
date_pattern: ccc, dd. MMM yyyy
time_format: 24
temperature_sensor: sensor.gw1100a_outdoor_temperature
card_mod:
style: |
clock-weather-card-today-right-wrap-center {
font-size: 4rem !important;
}
# Hourly Weather
- type: custom:hourly-weather
entity: weather.home
num_segments: 24
label_spacing: 5
hide_temperatures: true
name: null
icons: true
- type: iframe
url: https://radar.wo-cloud.com/mobile/wr?wrx=47.871,11.448&wrm=7&wro=true
aspect_ratio: 120%
# Vacuum
- type: custom:vacuum-card
entity: vacuum.roborock
show_name: false
compact_view: true
stats:
default:
- entity_id: sensor.vacuum_filter_left
unit: h
subtitle: Filter
- entity_id: sensor.vacuum_side_brush_left
unit: h
subtitle: Brush
- entity_id: sensor.vacuum_main_brush_left
unit: h
subtitle: Roller
- entity_id: sensor.vacuum_sensor_dirty_left
unit: h
subtitle: Sensors
- entity_id: sensor.vacuum_next_emptying
unit: m²
subtitle: Bin
cleaning:
- entity_id: sensor.vacuum_current_clean_duration
subtitle: Cleaning time
unit: minutes
- entity_id: sensor.vacuum_current_clean_area
unit: m²
subtitle: Cleaning area
shortcuts:
- name: Living room
icon: mdi:sofa
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 20
- name: Kitchen
icon: mdi:stove
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 21
- name: Corridor
icon: mdi:shoe-print
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 16
- name: Bedroom
icon: mdi:bed-king-outline
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 19
- name: Study
icon: mdi:desk-lamp
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 18
- name: Toilet
icon: mdi:toilet
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 17
- name: Bathroom
icon: mdi:shower
service: xiaomi_miio.vacuum_clean_segment
service_data:
entity_id: vacuum.roborock
segments: 1
- name: Tash
icon: mdi:trash-can
service: script.vacuum_dust_bin
# Horizon Card
- type: custom:horizon-card
time_format: '24'
fields:
dawn: false
dusk: false
noon: false
# Lights
- type: entities
entities:
- type: custom:fold-entity-row
head:
entity: light.bedroom
entities:
- light.bedroom_wardrobe
- type: custom:fold-entity-row
head:
entity: light.living_room
entities:
- light.living_room_lamp
- light.living_room_couch
- light.living_room_tv
- type: custom:fold-entity-row
head:
entity: light.study
entities:
- light.study_desk
- light.study_shelf
- light.study_floor_lamp
- type: custom:fold-entity-row
head:
entity: light.corridor
entities:
- light.corridor_sideboard
# Toggle Modes
- type: entities
entities:
- input_boolean.summer_mode
- input_boolean.guest_mode
- input_boolean.home_office_mode
- input_boolean.party_mode
- input_boolean.tv_mode
- input_boolean.detached_light
- input_boolean.vacuum_daily_cleanup
- input_boolean.night_light_mode
- input_boolean.vacuum_after_leave
# Media
- type: entities
entities:
- type: custom:mini-media-player
entity: media_player.all_speakers
group: hide
info: scroll
toggle_power: false
hide:
volume: true
progress: true
- input_number.volume_offset
- type: custom:paper-buttons-row
base_config:
layout: icon_name
buttons:
- icon: mdi:guitar-acoustic
entity: switch.radio_unplugged
- icon: mdi:city
entity: switch.radio_nrj
- icon: mdi:pulse
entity: switch.radio_puls
- type: custom:paper-buttons-row
base_config:
layout: icon_name
buttons:
- icon: mdi:television
entity: select.living_room_activities
active: tv
name: TV
tap_action:
action: call-service
service: select.select_option
target:
entity_id: select.living_room_activities
service_data:
option: TV
- icon: mdi:cast
entity: select.living_room_activities
name: Chromecast
active: chromecast
tap_action:
action: call-service
service: select.select_option
target:
entity_id: select.living_room_activities
service_data:
option: Chromecast
- icon: mdi:power
entity: select.living_room_activities
name: 'Off'
active: power_off
tap_action:
action: call-service
service: select.select_option
target:
entity_id: select.living_room_activities
service_data:
option: power_off
# Alarm Clock
- type: entities
entities:
- type: custom:fold-entity-row
entities:
- input_boolean.alarm_weekday_0
- input_boolean.alarm_weekday_1
- input_boolean.alarm_weekday_2
- input_boolean.alarm_weekday_3
- input_boolean.alarm_weekday_4
- input_boolean.alarm_weekday_5
- input_boolean.alarm_weekday_6
head:
entity: switch.alarm
- entity: input_datetime.wakeup_time
# People at home
- type: entities
entities:
- person.patrick
- person.sandra
- input_boolean.person_guest
# Temperature
- type: custom:thermostat-bar-card
entities:
- entity_id: climate.bathroom
icon: mdi:shower
window_sensor: binary_sensor.window_bathroom_contact
- entity_id: climate.toilet
icon: mdi:toilet
window_sensor: binary_sensor.window_toilet_contact
- entity_id: climate.living_room
icon: mdi:sofa
window_sensor: binary_sensor.window_living_room_contact
- entity_id: climate.kitchen
icon: mdi:stove
window_sensor: binary_sensor.window_kitchen_contact
- entity_id: climate.study
icon: mdi:desk-lamp
window_sensor: binary_sensor.window_study_contact
- entity_id: climate.bedroom
icon: mdi:bed-king-outline
window_sensor: binary_sensor.window_bedroom_contact
# Actions
- type: horizontal-stack
cards:
- type: button
icon: mdi:weather-sunset-up
icon_height: 36px
name: Good Morning
tap_action:
action: call-service
service: script.turn_on
data:
entity_id: script.good_morning
- type: button
icon_height: 36px
icon: mdi:weather-night
name: Good Night
tap_action:
action: call-service
service: script.turn_on
data:
entity_id: script.good_night