-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
251 lines (251 loc) · 5.55 KB
/
automations.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
- id: '1663362768451'
alias: Alles-Aus-Knopf
description: ''
trigger:
- platform: state
entity_id:
- switch.tasmota_5
from: 'on'
to: 'off'
- platform: state
entity_id:
- switch.tasmota_5
from: 'off'
to: 'on'
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.new_scene
metadata: {}
- service: input_number.set_value
data:
value: 0
target:
entity_id: input_number.ignition_brightness
- service: shell_command.studio_scheinwerfer_set
data: {}
- service: shell_command.ampel_off
data: {}
- service: shell_command.jukebox_suspend
data: {}
mode: single
- id: '1663369771702'
alias: Labor-Status-Knopf
description: ''
trigger:
- platform: state
entity_id:
- switch.tasmota_40f520cf460d_switch_relay_2
from: 'off'
to: 'on'
- platform: state
entity_id:
- switch.tasmota_40f520cf460d_switch_relay_2
from: 'on'
to: 'off'
condition: []
action:
- if:
- condition: device
type: is_on
device_id: d1aaa3538c22db1672ebb37023c02f9b
entity_id: switch.tasmota_40f520cf460d_switch_relay_2
domain: switch
for:
hours: 0
minutes: 0
seconds: 0
then:
- service: rest_command.labor_close
data: {}
else:
- service: rest_command.labor_open
data: {}
- service: homeassistant.update_entity
data: {}
target:
entity_id: sensor.raumstatus
mode: single
- id: '1663699840830'
alias: Labor-Status Poll
description: ''
trigger:
- platform: state
entity_id:
- sensor.raumstatus
condition: []
action:
- delay:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
- if:
- condition: state
entity_id: sensor.raumstatus
attribute: open
state: true
for:
hours: 0
minutes: 1
seconds: 20
then:
- type: turn_off
device_id: d1aaa3538c22db1672ebb37023c02f9b
entity_id: switch.tasmota_40f520cf460d_switch_relay_2
domain: switch
else: []
- if:
- condition: state
entity_id: sensor.raumstatus
attribute: open
state: false
for:
hours: 0
minutes: 1
seconds: 20
then:
- type: turn_on
device_id: d1aaa3538c22db1672ebb37023c02f9b
entity_id: switch.tasmota_40f520cf460d_switch_relay_2
domain: switch
mode: single
- id: '1665517172017'
alias: Raumstatus Closed
description: ''
trigger:
- platform: state
entity_id:
- sensor.raumstatus
attribute: open
from: true
to: false
condition: []
action:
- service: telegram_bot.send_message
data:
message: Das Labor ist jetzt zu.
mode: single
- id: '1665517334695'
alias: Raumstatus Opened
description: ''
trigger:
- platform: state
entity_id:
- sensor.raumstatus
attribute: open
from: false
to: true
condition: []
action:
- service: telegram_bot.send_message
data:
message: Das Labor ist jetzt offen.
mode: single
- id: '1665525392900'
alias: Lounge-Mode
description: ''
trigger:
- platform: state
entity_id:
- switch.tasmota_40f520cf460d_switch_relay_1
from: 'on'
to: 'off'
- platform: state
entity_id:
- switch.tasmota_40f520cf460d_switch_relay_1
from: 'off'
to: 'on'
condition: []
action:
- service: wake_on_lan.send_magic_packet
data:
mac: d0:27:88:b2:48:38
- type: turn_on
device_id: 6c978d6bc0ca353c795cd7b5218d8231
entity_id: switch.tasmota_3
domain: switch
- type: turn_on
device_id: 6f0de52b975d9391cd08c0bae6af50fe
entity_id: switch.tasmota_2
domain: switch
- type: turn_on
device_id: e679d486189b47834756424f8052d22d
entity_id: switch.tasmota
domain: switch
- type: turn_on
device_id: 312a79759c19a2c2ddafcdd6966fa4ce
entity_id: switch.tasmota_4
domain: switch
- type: turn_off
device_id: 3d898db6113cdd43897c743bb722e1dd
entity_id: switch.shelly1l_98cdac2f6c59
domain: switch
- type: turn_on
device_id: 22efa1c59df915f4435c26c130bdc1b5
entity_id: switch.tasmota_6
domain: switch
- type: turn_on
device_id: b04a55b5277537130b96d0950dae5f8e
entity_id: switch.tasmota_7
domain: switch
- type: turn_on
device_id: caab001049d6874102c1c0e4e0eda488
entity_id: switch.tasmota_8
domain: switch
- service: shell_command.ampel_normal
data: {}
- service: input_number.set_value
data:
value: 148
target:
entity_id: input_number.ignition_brightness
- service: input_number.set_value
data:
value: 15
target:
entity_id: input_number.ignition_hue
- service: input_number.set_value
data:
value: 57
target:
entity_id: input_number.ignition_saturation
- service: shell_command.studio_scheinwerfer_set
data: {}
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: shell_command.frozen_bottle_jukebox_visualizer_start
data: {}
- service: shell_command.jukebox_spotify
data: {}
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- service: shell_command.jukebox_spotify_next
data: {}
mode: single
- id: '1670970568171'
alias: Labor Auto Close
description: ''
trigger:
- platform: time
at: 06:00:00
condition:
- condition: state
entity_id: sensor.raumstatus
attribute: open
state: true
action:
- service: rest_command.labor_close
data: {}
- service: homeassistant.update_entity
data: {}
target:
entity_id: sensor.raumstatus
mode: single