-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
202 lines (202 loc) · 5.58 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
sleep_mode_on_actions:
alias: Sleep Mode On
sequence:
- data: {}
target:
entity_id:
- light.kitchen_sink_overhead
- light.kitchen_overhead
- group.john_desk_lights
- light.office_west_desk_lamp
- light.office_console_table_lamp
- light.office_overhead
- light.front_room_south_floor_lamp
- switch.front_room_bookshelf_overhead
- switch.front_room_table_light
- switch.guest_bedroom_east_lamp_plug
- light.upstairs_bedroom_overhead
- light.upstairs_bathroom_lamp
- light.hue_ambiance_candle_1
- light.hue_ambiance_candle_2
- light.kitchen_sink_counter_lamp
- light.front_room_north_floor_lamp
- light.downstairs_hallway_accent_light
- light.downstairs_hallway_main_lights
- light.laundry_room_main_lights
action: homeassistant.turn_off
- if:
- condition: zone
entity_id: person.annie
zone: zone.home
then:
- data: {}
target:
entity_id: fan.bedroom
action: fan.turn_on
- data:
oscillating: true
target:
entity_id: fan.bedroom
action: fan.oscillate
- data: {}
target:
entity_id: switch.bedroom_night_mode
action: homeassistant.turn_on
- data:
percentage: 70
target:
entity_id: fan.bedroom
action: fan.set_percentage
- if:
- condition: zone
entity_id: person.john
zone: zone.home
then:
- data: {}
target:
entity_id: fan.upstairs_bedroom
action: fan.turn_on
- data:
oscillating: true
target:
entity_id: fan.upstairs_bedroom
action: fan.oscillate
- data: {}
target:
entity_id:
- switch.upstairs_bedroom_night_mode
action: homeassistant.turn_on
- data:
percentage: 80
target:
entity_id: fan.upstairs_bedroom
action: fan.set_percentage
- if:
- condition: or
conditions:
- condition: zone
entity_id: person.john
zone: zone.home
- condition: zone
entity_id: person.annie
zone: zone.home
then:
- type: turn_on
device_id: fbcdacded1b9aad1e0980d446397eedc
entity_id: 683d9331b2470c2855ad44080e051088
domain: switch
- type: turn_off
device_id: 0f8c9c863e41509ae89eb58f99391579
entity_id: 18215f9c4664cde8c1db82260612a06a
domain: switch
- type: turn_off
device_id: 681946bb7e00682c4039f4454c4d0c81
entity_id: efc6876edadc051dff55a9cbcdb10336
domain: switch
- if:
- condition: state
entity_id: light.back_entry_main_lights
state: "on"
then:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.back_entry_main_lights
mode: single
icon: mdi:sleep
sleep_mode_off_actions:
alias: Sleep Mode Off
sequence:
- data: {}
target:
entity_id:
- light.office_west_desk_lamp
- light.office_console_table_lamp
- light.front_room_south_floor_lamp
- light.upstairs_bathroom_lamp
- switch.guest_bedroom_east_lamp_plug
- light.kitchen_sink_counter_lamp
action: homeassistant.turn_on
- if:
- condition: zone
entity_id: person.john
zone: zone.home
then:
- target:
entity_id: group.john_desk_lights
data: {}
action: homeassistant.turn_on
- if:
- condition: or
conditions:
- condition: zone
entity_id: person.john
zone: zone.home
- condition: zone
entity_id: person.annie
zone: zone.home
then:
- metadata: {}
data: {}
target:
entity_id:
- light.kitchen_overhead
- light.kitchen_sink_overhead
action: homeassistant.turn_on
- data:
brightness: 255
target:
entity_id: light.front_room_north_floor_lamp
action: light.turn_on
- data: {}
target:
entity_id:
- fan.upstairs_bedroom
- fan.bedroom
action: fan.turn_off
- action: climate.set_hvac_mode
target:
entity_id:
- climate.aircon_aaa2
data:
hvac_mode: "off"
continue_on_error: true
- data: {}
target:
entity_id: switch.upstairs_bedroom_sound_machine
action: switch.turn_off
- action: light.turn_on
metadata: {}
data:
brightness_pct: 50
target:
entity_id:
- light.laundry_room_main_lights
- light.downstairs_hallway_main_lights
- action: light.turn_on
metadata: {}
data:
brightness_pct: 5
target:
entity_id: light.downstairs_hallway_accent_light
mode: single
icon: mdi:weather-sunset-up
renew_lets_encrypt_ssl_certificates:
alias: Renew Let's Encrypt SSL Certificates
sequence:
- service: hassio.addon_start
data:
addon: core_letsencrypt
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: shell_command.copy_ssl_files
data: {}
- service: hassio.addon_restart
data:
addon: core_nginx_proxy
mode: single
icon: mdi:shield-lock