-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlights.yaml
178 lines (164 loc) · 4.05 KB
/
lights.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
---
- alias: Turn on Lights to Wake Us Up
id: turn_on_light_to_wake_us_up
description: >-
Fade lights in on weekday mornings to simulate a sunrise next to
our faces to wake us up.
initial_state: true
triggers:
trigger: time
at: "06:00:00"
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
actions:
action: light.turn_on
data:
entity_id: light.hue_white_lamp_1
brightness: 255
transition: 1800
- alias: Turn Off Lights Before Work
id: turn_off_lights_before_work
description: >-
Turn off lights weekday mornings after sunrise.
initial_state: true
triggers:
- trigger: numeric_state
entity_id: sun.sun
attribute: elevation
above: 6.0
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
actions:
action: light.turn_off
entity_id: light.hue_white_lamp_1
- alias: Turn On Lights Before Sunset
description: >-
Gradually fade in lights as the sun sets into the night.
initial_state: true
triggers:
trigger: sun
event: sunset
offset: "-1:15:00"
actions:
action: light.turn_on
data:
entity_id:
- light.hue_white_lamp_1
- light.hue_white_lamp_3
brightness: 255
transition: 1500
# Hue bulbs take 30 minutes to fade to off.
- alias: Turn Off Lee's Bedside By 8:30pm
initial_state: true
triggers:
trigger: time
at: "20:00:00"
actions:
action: light.turn_off
data:
entity_id: light.hue_white_lamp_3
transition: 1800
# Hue bulbs take 30 minutes to fade to off.
- alias: Turn Off Andrei's Bedside By 9:00pm
id: turn_off_andrei_s_bedside_by_9_00pm
triggers:
trigger: time
at: "20:30:00"
actions:
action: light.turn_off
data:
entity_id: light.hue_white_lamp_1
transition: 1800
- alias: Turn On Night-Light at Sunset
initial_state: true
triggers:
trigger: sun
event: sunset
offset: "-0:30:00"
actions:
action: light.turn_on
data:
entity_id: light.controller_rgb_44_key_ir_cde6d9
brightness: 13
- alias: Turn Off Night-Light After Sunrise
id: turn_off_night_light_after_sunrise
description: Turn off night-light 15 minutes after sunrise.
initial_state: true
triggers:
trigger: sun
event: sunrise
offset: "00:15:00"
actions:
action: light.turn_off
data:
entity_id: light.controller_rgb_44_key_ir_cde6d9
- alias: Turn Off Outside Lights Sunrise
triggers:
trigger: sun
event: sunrise
actions:
- action: light.turn_off
data:
entity_id:
- light.hue_color_lamp_1
- alias: Turn On Outside Lights Sunset
triggers:
trigger: sun
event: sunset
offset: '-00:15:00'
actions:
- action: light.turn_on
data:
entity_id: light.hue_color_lamp_1
brightness_pct: 75
rgb_color: [255, 255, 255]
- alias: Turn On Dining Room Lamp Before Sunset
initial_state: true
triggers:
trigger: sun
event: sunset
offset: "-1:00:00"
actions:
action: switch.turn_on
data:
entity_id: switch.wemo_mini_1_2
- alias: Turn Off Dining Room Lamp
initial_state: true
triggers:
trigger: time
at: "22:30:00"
actions:
action: switch.turn_off
data:
entity_id: switch.wemo_mini_1_2
- alias: Toggle Live Sign When Busy in Teams
triggers:
trigger: state
entity_id: binary_sensor.teams_on_call
actions:
- action: switch.turn_{{ trigger.to_state.state }}
target:
entity_id: switch.wemo_mini_4
- alias: Turn On Both Living Room Bookshelf Lamps From Single Switch
id: turn_on_both_living_room_bookshelf_lamps_from_single_switch
# yamllint disable-line rule:line-length
description: Physically toggling the one reachable switch should toggle the other switch in tandem
triggers:
- trigger: state
entity_id: switch.tp_link_smart_plug_d6d2
actions:
- action: switch.turn_{{ trigger.to_state.state }}
target:
entity_id: switch.tp_link_smart_plug_ac23