-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathfull.yaml
466 lines (466 loc) · 11.4 KB
/
full.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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
blueprint:
name: Sleep as Android MQTT actions
description: Define actions based on Sleep As Android sensor states
domain: automation
source_url: https://github.com/IATkachenko/HA-SleepAsAndroid/blob/main/blueprint/full.yaml
input:
device:
name: SleepAsAndroid device
description: 'Device for Sleep as Android '
selector:
device:
integration: sleep_as_android
person:
name: Person
description: Person for checking state
selector:
entity:
domain: person
state:
name: State
description: Person must be in this state
default: home
sleep_tracking_started:
name: sleep_tracking_started
description: sleep_tracking_started event
default: []
selector:
action: {}
sleep_tracking_stopped:
name: sleep_tracking_stopped
description: sleep_tracking_stopped event
default: []
selector:
action: {}
sleep_tracking_paused:
name: sleep_tracking_paused
description: sleep_tracking_paused event
default: []
selector:
action: {}
sleep_tracking_resumed:
name: sleep_tracking_resumed
description: sleep_tracking_resumed event
default: []
selector:
action: {}
alarm_snooze_clicked:
name: alarm_snooze_clicked
description: alarm_snooze_clicked event
default: []
selector:
action: {}
alarm_snooze_canceled:
name: alarm_snooze_canceled
description: alarm_snooze_canceled event
default: []
selector:
action: {}
time_to_bed_alarm_alert:
name: time_to_bed_alarm_alert
description: time_to_bed_alarm_alert event
default: []
selector:
action: {}
alarm_alert_start:
name: alarm_alert_start
description: alarm_alert_start event
default: []
selector:
action: {}
alarm_alert_dismiss:
name: alarm_alert_dismiss
description: alarm_alert_dismiss event
default: []
selector:
action: {}
alarm_skip_next:
name: alarm_skip_next
description: alarm_skip_next event
default: []
selector:
action: {}
show_skip_next_alarm:
name: show_skip_next_alarm
description: show_skip_next_alarm event
default: []
selector:
action: {}
rem:
name: rem
description: rem event
default: []
selector:
action: {}
smart_period:
name: smart_period
description: smart_period event
default: []
selector:
action: {}
before_smart_period:
name: before_smart_period
description: before_smart_period event
default: []
selector:
action: {}
lullaby_start:
name: lullaby_start
description: lullaby_start event
default: []
selector:
action: {}
lullaby_stop:
name: lullaby_stop
description: lullaby_stop event
default: []
selector:
action: {}
lullaby_volume_down:
name: lullaby_volume_down
description: lullaby_volume_down event
default: []
selector:
action: {}
deep_sleep:
name: deep_sleep
description: deep_sleep event
default: []
selector:
action: {}
light_sleep:
name: light_sleep
description: light_sleep event
default: []
selector:
action: {}
awake:
name: awake
description: awake event
default: []
selector:
action: {}
not_awake:
name: not_awake
description: not_awake event
default: []
selector:
action: {}
apnea_alarm:
name: apnea_alarm
description: apnea_alarm event
default: []
selector:
action: {}
antisnoring:
name: antisnoring
description: antisnoring event
default: []
selector:
action: {}
sound_event_snore:
name: sound_event_snore
description: sound_event_snore event
default: []
selector:
action: {}
sound_event_talk:
name: sound_event_talk
description: sound_event_talk event
default: []
selector:
action: {}
sound_event_cough:
name: sound_event_cough
description: sound_event_cough event
default: []
selector:
action: {}
sound_event_baby:
name: sound_event_baby
description: sound_event_baby event
default: []
selector:
action: {}
sound_event_laugh:
name: sound_event_laugh
description: sound_event_laugh event
default: []
selector:
action: {}
before_alarm:
name: before_alarm
description: before_alarm event
default: []
selector:
action: {}
mode: queued
max_exceeded: silent
trigger:
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sleep_tracking_started
id: sleep_tracking_started
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sleep_tracking_stopped
id: sleep_tracking_stopped
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sleep_tracking_paused
id: sleep_tracking_paused
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sleep_tracking_resumed
id: sleep_tracking_resumed
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: alarm_snooze_clicked
id: alarm_snooze_clicked
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: alarm_snooze_canceled
id: alarm_snooze_canceled
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: time_to_bed_alarm_alert
id: time_to_bed_alarm_alert
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: alarm_alert_start
id: alarm_alert_start
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: alarm_alert_dismiss
id: alarm_alert_dismiss
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: alarm_skip_next
id: alarm_skip_next
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: show_skip_next_alarm
id: show_skip_next_alarm
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: rem
id: rem
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: smart_period
id: smart_period
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: before_smart_period
id: before_smart_period
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: lullaby_start
id: lullaby_start
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: lullaby_stop
id: lullaby_stop
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: lullaby_volume_down
id: lullaby_volume_down
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: deep_sleep
id: deep_sleep
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: light_sleep
id: light_sleep
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: awake
id: awake
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: not_awake
id: not_awake
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: apnea_alarm
id: apnea_alarm
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: antisnoring
id: antisnoring
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sound_event_snore
id: sound_event_snore
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sound_event_talk
id: sound_event_talk
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sound_event_cough
id: sound_event_cough
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sound_event_baby
id: sound_event_baby
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: sound_event_laugh
id: sound_event_laugh
- platform: device
domain: sleep_as_android
device_id: !input 'device'
type: before_alarm
id: before_alarm
condition:
- condition: state
entity_id: !input person
state: !input state
action:
- choose:
- conditions:
condition: trigger
id: sleep_tracking_started
sequence: !input 'sleep_tracking_started'
- conditions:
condition: trigger
id: sleep_tracking_stopped
sequence: !input 'sleep_tracking_stopped'
- conditions:
condition: trigger
id: sleep_tracking_paused
sequence: !input 'sleep_tracking_paused'
- conditions:
condition: trigger
id: sleep_tracking_resumed
sequence: !input 'sleep_tracking_resumed'
- conditions:
condition: trigger
id: alarm_snooze_clicked
sequence: !input 'alarm_snooze_clicked'
- conditions:
condition: trigger
id: alarm_snooze_canceled
sequence: !input 'alarm_snooze_canceled'
- conditions:
condition: trigger
id: time_to_bed_alarm_alert
sequence: !input 'time_to_bed_alarm_alert'
- conditions:
condition: trigger
id: alarm_alert_start
sequence: !input 'alarm_alert_start'
- conditions:
condition: trigger
id: alarm_alert_dismiss
sequence: !input 'alarm_alert_dismiss'
- conditions:
condition: trigger
id: alarm_skip_next
sequence: !input 'alarm_skip_next'
- conditions:
condition: trigger
id: show_skip_next_alarm
sequence: !input 'show_skip_next_alarm'
- conditions:
condition: trigger
id: rem
sequence: !input 'rem'
- conditions:
condition: trigger
id: smart_period
sequence: !input 'smart_period'
- conditions:
condition: trigger
id: before_smart_period
sequence: !input 'before_smart_period'
- conditions:
condition: trigger
id: lullaby_start
sequence: !input 'lullaby_start'
- conditions:
condition: trigger
id: lullaby_stop
sequence: !input 'lullaby_stop'
- conditions:
condition: trigger
id: lullaby_volume_down
sequence: !input 'lullaby_volume_down'
- conditions:
condition: trigger
id: deep_sleep
sequence: !input 'deep_sleep'
- conditions:
condition: trigger
id: light_sleep
sequence: !input 'light_sleep'
- conditions:
condition: trigger
id: awake
sequence: !input 'awake'
- conditions:
condition: trigger
id: not_awake
sequence: !input 'not_awake'
- conditions:
condition: trigger
id: apnea_alarm
sequence: !input 'apnea_alarm'
- conditions:
condition: trigger
id: antisnoring
sequence: !input 'antisnoring'
- conditions:
condition: trigger
id: sound_event_snore
sequence: !input 'sound_event_snore'
- conditions:
condition: trigger
id: sound_event_talk
sequence: !input 'sound_event_talk'
- conditions:
condition: trigger
id: sound_event_cough
sequence: !input 'sound_event_cough'
- conditions:
condition: trigger
id: sound_event_baby
sequence: !input 'sound_event_baby'
- conditions:
condition: trigger
id: sound_event_laugh
sequence: !input 'sound_event_laugh'
- conditions:
condition: trigger
id: before_alarm
sequence: !input 'before_alarm'