-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
636 lines (636 loc) · 15.8 KB
/
scripts.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
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
disable_alarm_if_not_at_home:
alias: Disable Alarm if not at Home
sequence:
- condition: device
device_id: 5a08decc8303df6acf42c1e6cfac8d64
domain: device_tracker
entity_id: device_tracker.rosemarys_iphone_13_pro
type: is_not_home
- service: input_boolean.turn_off
target:
entity_id: input_boolean.alarm_clock
mode: single
icon: mdi:alarm-note-off
heating_pad_heat:
alias: 'Heating Pad: Heat'
sequence:
- condition: state
entity_id: binary_sensor.a_heating_pad_is_on
state: 'on'
- choose:
- conditions:
- condition: state
entity_id: input_select.heating_pad_selector
state: Living Room
sequence:
- type: turn_on
device_id: 9e16330576df742cd97c19c54903c753
entity_id: switch.living_room_heating_pad
domain: switch
- conditions:
- condition: state
entity_id: input_select.heating_pad_selector
state: Office
sequence:
- type: turn_on
device_id: 05f9d774781e4f52c40234fa4a9ef75b
entity_id: switch.heating_pad
domain: switch
default: []
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.heating_pad_time_change
data:
timestamp: '{{ as_timestamp(now() + timedelta( minutes = 30 )) }}'
- service: input_select.select_first
target:
entity_id: input_select.heating_pad_state
mode: single
heating_pad_pause:
alias: 'Heating Pad: Pause'
sequence:
- condition: state
entity_id: binary_sensor.a_heating_pad_is_on
state: 'on'
- choose:
- conditions:
- condition: state
entity_id: input_select.heating_pad_selector
state: Living Room
sequence:
- type: turn_off
device_id: 9e16330576df742cd97c19c54903c753
entity_id: switch.living_room_heating_pad
domain: switch
- conditions:
- condition: state
entity_id: input_select.heating_pad_selector
state: Office
sequence:
- type: turn_off
device_id: 05f9d774781e4f52c40234fa4a9ef75b
entity_id: switch.heating_pad
domain: switch
default: []
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.heating_pad_time_change
data:
timestamp: '{{ as_timestamp(now() + timedelta( minutes = 1 )) }}'
- service: input_select.select_last
target:
entity_id: input_select.heating_pad_state
mode: single
time_to_sleep:
alias: Time to Sleep
sequence:
- service: input_select.select_option
data:
option: Sleep
target:
entity_id: input_select.rose_state
- service: light.turn_off
data: {}
target:
area_id:
- hallway
- office
- living_room
- bathroom
- kitchen
- christmas
entity_id:
- light.bedroom_overhead
- service: switch.turn_off
target:
device_id:
- fecce10ba5aa6f2d37f488bb65bcaf30
entity_id:
- switch.office_heating_pad
- switch.living_room_heating_pad
data: {}
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.office_heating_pad_controller
- input_boolean.living_room_heating_pad_controller
data: {}
- service: climate.set_temperature
target:
entity_id:
- climate.bedroom_thermostat
- climate.office_thermostat
- climate.hallway
- climate.living_room
data:
temperature: 15
- service: humidifier.turn_off
data: {}
target:
entity_id: humidifier.hallway_humidity_control
- choose:
- conditions:
- condition: state
entity_id: input_select.electric_blanket_time_off_options
state: None
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.electric_blanket_left
- switch.electric_blanket_right
- switch.electric_blanket
data: {}
default: []
- service: light.turn_off
data:
transition: 60
target:
entity_id: light.bedside
- service: light.turn_off
data:
transition: 90
target:
device_id: cb0c08a4a64ac0fee60aca7d07b961c8
mode: single
icon: mdi:sleep
sunset:
alias: Sunset
sequence:
- service: cover.close_cover
target:
entity_id:
- cover.bedroom_blind
- cover.bedroom_curtain
- cover.kitchen_blind
- cover.lounge_curtain
- cover.vertical_blind
- cover.vertical_rotate
- cover.office_blind
- cover.office_curtain
mode: single
icon: mdi:weather-sunset-down
ready_for_bed:
alias: Ready for Bed
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: weather.home
attribute: temperature
below: '12'
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.electric_blanket_left
- switch.electric_blanket_right
data: {}
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.electric_blanket_off
data:
datetime: '{{ (today_at() + timedelta(days=1, hours=6)) }}'
- service: input_select.select_first
target:
entity_id: input_select.electric_blanket_time_off_options
data: {}
- service: climate.set_temperature
target:
entity_id: climate.bedroom_thermostat
data:
temperature: 18
default: []
- service: light.turn_on
target:
device_id:
- 4a242dae2709985380da5d761e430897
- 9906bff70ee855d13775fa2371cea4d4
- 26af60adc8366ea2898b8bff264dbcf3
data:
brightness_pct: 75
mode: single
icon: mdi:bed
open_living_room_blinds_rotate:
alias: 'Living Room Blinds: Rotate'
sequence:
- choose:
- conditions:
- condition: or
conditions:
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
below: '3'
- condition: sun
before: sunrise
- condition: sun
after: sunset
sequence:
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.vertical_rotate
- conditions:
- condition: template
value_template: '{{ now() > as_datetime(states(''sensor.my_home_solar_noon''))
}}'
sequence:
- service: cover.set_cover_position
data:
position: 75
target:
entity_id: cover.vertical_rotate
default:
- service: cover.set_cover_position
data:
position: 25
target:
entity_id: cover.vertical_rotate
mode: single
icon: mdi:axis-z-rotate-clockwise
all_lights_off:
alias: All Lights Off
sequence:
- service: light.turn_off
target:
area_id:
- christmas
- hallway
- living_room
- office
data: {}
mode: single
icon: mdi:lightbulb-off
test_bedside_lights:
alias: Test Bedside Lights
sequence:
- service: light.turn_on
data:
color_name: red
brightness_pct: 1
target:
entity_id: light.bedside_lights
mode: single
morning:
alias: Morning
sequence:
- service: cover.open_cover
target:
device_id:
- a88814ee3ea4b7a3f4f9810b97e1908c
- 8e2a36ae56f263d4df46cea35b5d483c
entity_id:
- cover.lounge_curtain
- cover.office_curtain
data: {}
- service: cover.set_cover_position
target:
device_id: 2cf922a4500093c4273a8e3851bb0998
data:
position: 60
- service: light.turn_on
data:
brightness_step_pct: 100
transition: 30
target:
entity_id: light.wake_up
- choose:
- conditions:
- condition: state
entity_id: input_select.rose_state
state: Sleep
sequence:
- service: input_select.select_option
data:
option: Home
target:
entity_id: input_select.rose_state
default: []
- service: script.check_to_run_dehumdifier
data: {}
- service: switch.turn_on
target:
entity_id: switch.bedroom_air_purifier_power
data: {}
mode: single
icon: mdi:weather-sunset-up
reset_alarm_to_default:
alias: Reset Alarm to Default
sequence:
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.alarm_time
data:
time: 08:30:00
- service: input_select.select_first
target:
entity_id: input_select.manual_alarm_setting
data: {}
mode: single
check_to_run_dehumdifier:
alias: Check to run Dehumdifier
sequence:
- service: humidifier.turn_on
target:
entity_id: humidifier.hallway_humidity_control
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.airer_contact
state: 'off'
sequence:
- service: humidifier.set_humidity
target:
entity_id: humidifier.hallway_humidity_control
data:
humidity: 40
default:
- service: humidifier.set_humidity
target:
entity_id: humidifier.hallway_humidity_control
data:
humidity: 50
mode: single
icon: mdi:air-humidifier-off
start_podcasting:
alias: Start Podcasting
sequence:
- type: turn_off
device_id: c20a505d930b149e82bef170e68dba8c
entity_id: switch.dehumidifier_outlet
domain: switch
mode: single
end_podcasting:
alias: End Podcasting
sequence:
- service: script.check_to_run_dehumdifier
data: {}
mode: single
icon: mdi:microphone-off
open_living_room_blinds:
alias: 'Living Room Blinds: Open'
sequence:
- service: cover.set_cover_position
target:
entity_id: cover.vertical_rotate
data:
position: 50
- wait_template: '{{ is_state(''cover.vertical_rotate'', 50) }}'
timeout: '10'
continue_on_timeout: true
- service: cover.open_cover
target:
entity_id:
- cover.vertical_open
data: {}
mode: single
icon: mdi:door-sliding
all_heating_to_15:
alias: All Heating to 15
sequence:
- service: climate.turn_on
target:
entity_id:
- climate.bedroom_thermostat
- climate.hallway
- climate.living_room
- climate.office_thermostat
data: {}
- service: climate.set_temperature
target:
entity_id:
- climate.bedroom_thermostat
- climate.hallway
- climate.living_room
- climate.office_thermostat
data:
temperature: 15
mode: single
icon: mdi:fast-forward-15
'1642870456606':
alias: 'Living Room Blinds: Close'
sequence:
- service: cover.close_cover
data: {}
target:
entity_id: cover.vertical_open
- wait_template: '{{ is_state(''cover.vertical_open'', ''off'') }}'
timeout: '10'
continue_on_timeout: true
- service: script.open_living_room_blinds_rotate
data: {}
- condition: state
entity_id: binary_sensor.living_room_is_dark
state: 'on'
- service: cover.close_cover
target:
entity_id:
- cover.lounge_curtain
data: {}
mode: single
icon: mdi:curtains-closed
run_the_robot_vacuum_today:
alias: Run the Robot Vacuum Today
sequence:
- condition: template
value_template: '{{ as_timestamp(states(''input_datetime.buttercup_cleaned''))
< as_timestamp(today_at()) }}'
- service: vacuum.start
target:
entity_id: vacuum.buttercup
mode: single
getting_up:
alias: Getting Up
sequence:
- service: script.open_living_room_blinds_rotate
data: {}
- service: cover.open_cover
data: {}
target:
device_id: 2cf922a4500093c4273a8e3851bb0998
entity_id:
- cover.bedroom_curtain
- cover.lounge_curtain
- cover.office_curtain
- service: light.turn_off
data: {}
target:
area_id: bedroom
mode: single
icon: mdi:weather-sunset-up
'1647054809832':
alias: Time to Sleep (Almost)
sequence:
- service: input_select.select_option
data:
option: Sleep
target:
entity_id: input_select.rose_state
- service: light.turn_off
data: {}
target:
area_id:
- hallway
- office
- living_room
entity_id:
- light.bedroom_overhead
- light.kitchen_light
- light.bathroom_light
device_id: ddfafc2f1445a985418adcc8f9c8ee76
- service: switch.turn_off
target:
device_id:
- fecce10ba5aa6f2d37f488bb65bcaf30
entity_id:
- switch.office_heating_pad
- switch.living_room_heating_pad
data: {}
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.office_heating_pad_controller
- input_boolean.living_room_heating_pad_controller
data: {}
- service: climate.set_temperature
target:
entity_id:
- climate.bedroom_thermostat
- climate.office_thermostat
- climate.hallway
- climate.living_room
data:
temperature: 15
- service: humidifier.turn_off
data: {}
target:
entity_id: humidifier.hallway_humidity_control
- choose:
- conditions:
- condition: state
state: 'On'
entity_id: switch.electric_blanket
- condition: state
entity_id: input_select.electric_blanket_time_off_options
state: None
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.electric_blanket
- switch.electric_blanket_left
- switch.electric_blanket_right
default: []
mode: single
icon: mdi:chat-sleep
leaving_home:
alias: Leaving Home
sequence:
- service: light.turn_off
data: {}
target:
area_id:
- office
- living_room
- hallway
- christmas
- bedroom
- service: climate.set_temperature
data:
temperature: 15
target:
entity_id:
- climate.bedroom_thermostat
- climate.hallway
- climate.living_room
- climate.office_thermostat
mode: single
icon: mdi:shield-home
showering:
alias: Showering
sequence:
- service: script.1642870456606
data: {}
- service: cover.close_cover
data: {}
target:
entity_id: cover.vertical_rotate
- service: cover.close_cover
data: {}
target:
entity_id: cover.bedroom_curtain
- service: light.turn_on
data:
brightness_pct: 100
target:
device_id: 467a95e8ab7964b7124732b73c887555
- service: media_player.play_media
target:
entity_id: media_player.sonos_roam
data:
media_content_id: FV:2/2
media_content_type: favorite_item_id
metadata:
title: Favs
thumbnail: https://is4-ssl.mzstatic.com/image/thumb/Features71/v4/54/5c/fa/545cfaf4-1c30-a8ae-9e14-627c4b409843/source/400x400bb.jpeg
media_class: playlist
children_media_class:
navigateIds:
- {}
- media_content_type: favorites
media_content_id: ''
- media_content_type: favorites_folder
media_content_id: object.container.playlistContainer
mode: single
icon: mdi:shower-head
'1651066903184':
sequence:
- repeat:
while:
- condition: not
conditions:
- condition: state
entity_id: cover.bedroom_blind
attribute: current_position
state: '100'
sequence:
- service: cover.set_cover_position
data:
position: '{{ (state_attr(''cover.bedroom_blind'', ''current_position'')
| int) + 10 }}'
target:
device_id: 8e2a36ae56f263d4df46cea35b5d483c
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
mode: single
alias: Slowly open bedroom blind
patio_door_unlock_as_garage:
alias: Patio Door Unlock as Garage
sequence:
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: lock.open
data: {}
target:
entity_id:
- lock.patio_door_right
- lock.patio_door_left
mode: single
wake_up_lights:
alias: Wake Up Lights
sequence:
- type: turn_off
device_id: 0ac856cce9b713b3905702f0eb81442e
entity_id: light.3d_printer_lights
domain: light
mode: single
icon: mdi:weather-sunset-up