-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.yaml
67 lines (66 loc) · 1.76 KB
/
script.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
timed_deck_light:
alias: Turn on deck light and set timer
sequence:
- service: script.turn_off
data:
entity_id: script.timer_off
- service: switch.turn_on
data:
entity_id: switch.deck_light_switch
- service: script.turn_on
data:
entity_id: script.timer_off
timer_off:
alias: Turn off deck light after 5 minutes
sequence:
- delay:
minutes: 5
- service: switch.turn_off
data:
entity_id: switch.deck_light_switch
dim_master_bath:
alias: Dim Master Bathroom Lights and Turn Off
sequence:
- alias: Master Bath Dim
data:
brightness: 5
entity_id: light.master_bathroom_light_level
service: light.turn_on
- alias: Master Bath Off
data:
entity_id: light.master_bathroom_light_level
service: light.turn_off
sleep_script:
alias: Sleep Script
sequence:
- delay:
minutes: 30
- wait_template: "{{ states.light.master_bathroom_light_level.state == 'off' }}"
- alias: Dim Master Bathroom Lights and Turn Off
data: {}
service: script.dim_master_bath
brighten_master_bath:
alias: Brighten Master Bathroom Lights and Turn Off
sequence:
- data:
brightness: 255
entity_id: light.master_bathroom_light_level
service: light.turn_on
- data:
entity_id: light.master_bathroom_light_level
service: light.turn_off
wake_script:
alias: Wake Script
sequence:
- alias: Brighten Master Bathroom Lights and Turn Off
data: {}
service: script.brighten_master_bath
# cast_nursery_camera:
# alias: Cast Nursery Camera
# sequence:
# - alias: send nursery cam to living room tv
# service: media_player.play_media
# data:
# entity_id: media_player.bedroom_tv
# media_content_type: 'video'
# media_content_id: !secret nursery_input