forked from willbob8/willsurridgetech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LovelaceToD.yaml
251 lines (248 loc) · 8.15 KB
/
LovelaceToD.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
##### SENSOR CONFIG
binary_sensor:
- platform: workday
country: GB
sensor:
- platform: template
sensors:
lovelace_tod:
friendly_name: "Lovelace ToD"
value_template: ->
{% if is_state("binary_sensor.workday_sensor", "on") %}
{% if now() < today_at("09:15") %}
work_morning
{% elif now() < today_at("17:00") %}
workday
{% elif now() < today_at("20:00") %}
evening
{% else %}
night
{% endif %}
{% else %}
{% if now() < today_at("10:15") %}
weekend_morning
{% elif now() < today_at("17:00") %}
weekend_day
{% elif now() < today_at("20:00") %}
evening
{% else %}
night
{% endif %}
{% endif %}
##### LOVELACE CONFIG
- title: ToD
path: ToD
theme: kibibit-dark-cards
badges: []
cards:
- type: custom:digital-clock
dateFormat:
weekday: long
day: 2-digit
month: long
comma: null
- type: weather-forecast
entity: weather.6sr
- type: conditional
conditions:
- entity: sensor.lovelace_tod
state: '-> work_morning'
card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_boolean.sleeping
- entity: input_boolean.morning_scene
- entity: input_number.workout_duration
title: Morning
- type: conditional
conditions:
- entity: sensor.lovelace_tod
state: '-> workday'
card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: light.cave_all
title: Workday
- type: custom:mini-media-player
artwork: cover
speaker_group:
platform: sonos
show_group_count: true
entities:
- entity_id: media_player.sitting_room
name: Sitting Room
- entity_id: media_player.cave
name: Cave
- entity_id: media_player.kitchen
name: Kitchen
- entity_id: media_player.sonos_roam
name: Roam
group: false
entity: media_player.cave
- type: thermostat
entity: climate.cave
- type: conditional
conditions:
- entity: sensor.lovelace_tod
state: '-> evening'
card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_boolean.cooking_scene
- entity: input_boolean.dinner_scene
- entity: input_boolean.retire_scene
- entity: light.dining_bulbs
- entity: script.sitting_tv
title: Evening
show_header_toggle: false
- type: custom:mini-media-player
artwork: cover
speaker_group:
platform: sonos
show_group_count: true
entities:
- entity_id: media_player.sitting_room
name: Sitting Room
- entity_id: media_player.cave
name: Cave
- entity_id: media_player.kitchen
name: Kitchen
- entity_id: media_player.sonos_roam
name: Roam
group: false
entity: media_player.sonos_roam
- type: thermostat
entity: climate.living_room
- type: conditional
conditions:
- entity: sensor.lovelace_tod
state: '-> weekend_day'
card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_select.follow_host
- entity: input_boolean.follow_music
title: Weekend
- type: custom:mini-media-player
artwork: cover
speaker_group:
platform: sonos
show_group_count: true
entities:
- entity_id: media_player.sitting_room
name: Sitting Room
- entity_id: media_player.cave
name: Cave
- entity_id: media_player.kitchen
name: Kitchen
- entity_id: media_player.sonos_roam
name: Roam
group: false
entity: media_player.cave
- type: thermostat
entity: climate.cave
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: button
tap_action:
action: navigate
navigation_path: /room-overview/bedroom
icon: mdi:bed
- type: button
tap_action:
action: navigate
navigation_path: /room-overview/kitchen
icon: mdi:chef-hat
- type: button
tap_action:
action: navigate
navigation_path: /room-overview/cave
icon: mdi:desk
- type: button
tap_action:
action: navigate
navigation_path: /room-overview/sitting
icon: mdi:sofa
- type: horizontal-stack
cards:
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/lighting
icon: mdi:lightbulb-on-outline
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/media
icon: mdi:cast
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/heating
icon: mdi:radiator
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/inputs
icon: mdi:toggle-switch
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/cctv
icon: mdi:cctv
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/network
icon: mdi:access-point-network
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/devices
icon: mdi:tablet
- type: button
tap_action:
action: navigate
navigation_path: /lovelace-type/batteries
icon: mdi:battery
- type: conditional
conditions:
- entity: sensor.lovelace_tod
state: '-> night'
card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_datetime.alarm_time
- entity: input_boolean.alarm
- entity: input_boolean.bed_scene
- entity: input_boolean.sleep_scene
title: Night
show_header_toggle: false
- type: custom:mini-media-player
artwork: cover
speaker_group:
platform: sonos
show_group_count: true
entities:
- entity_id: media_player.sitting_room
name: Sitting Room
- entity_id: media_player.cave
name: Cave
- entity_id: media_player.kitchen
name: Kitchen
- entity_id: media_player.sonos_roam
name: Roam
group: false
entity: media_player.bedroom