This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautomations.yaml
198 lines (198 loc) · 4.57 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
- id: '1738240615761'
alias: Give moar Coffee
description: Normally the coffee machine turns off at night. this might not always
be the best thing. this automation allows users to turn the machine on for 90
minutes without them having access to the full HA UI
triggers:
- trigger: webhook
allowed_methods:
- POST
- PUT
- GET
local_only: false
webhook_id: moar-coffee
conditions:
- condition: device
type: is_off
device_id: 12f7c3043875c7e61a21fb4ee0a40c0f
entity_id: c624beebae9e744ddfe8c6caa941b225
domain: switch
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.shellyplus1pm_a8032abbb744_switch_0
- delay:
hours: 1
minutes: 30
seconds: 0
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.shellyplus1pm_a8032abbb744_switch_0
mode: restart
- id: '1738241096739'
alias: Dim the bar lights if nothing happens
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.lvl3_bar_sensor_motion
to: 'off'
for:
hours: 0
minutes: 5
seconds: 0
from: 'on'
conditions:
- condition: state
entity_id: light.bar_lights
state: 'on'
actions:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.working_hours_long
state: 'on'
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.bar_lights
default:
- action: scene.turn_on
metadata: {}
data:
transition: 11
target:
entity_id: scene.bar_bright
mode: single
- id: '1738241879873'
alias: Turn on the bar light if people are there
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.lvl3_bar_sensor_motion
from: 'off'
to: 'on'
conditions: []
actions:
- action: scene.turn_on
metadata: {}
data:
transition: 3
target:
entity_id: scene.bar_bright_2
mode: single
- id: '1738242286665'
alias: Preheat the coffee machine in the morning
description: ''
triggers:
- trigger: time
at: 05:30:00
conditions:
- condition: state
entity_id: binary_sensor.warchtig
state: 'on'
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.shellyplus1pm_a8032abbb744_switch_0
mode: single
- id: '1738242373475'
alias: Turn stuff off at 2200
description: ''
triggers:
- trigger: time
at: '22:00:00'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id:
- switch.screens
- switch.shellyplus1pm_a8032abbb744_switch_0
- switch.lampe_insel_4
mode: single
- id: '1738242436510'
alias: Turn stuff on in the morning
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.working_hours_short
to: 'on'
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id:
- switch.screens
- switch.shellyplus1pm_a8032abbb744_switch_0
- switch.lampe_insel_4
- switch.lampe_insel_3
mode: single
- id: '1738242523521'
alias: Turn stuff off in the evening
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.working_hours_short
to: 'off'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.screens
mode: single
- id: '1738249712986'
alias: Toggle Insel 3 Lampe on Webhook
description: ''
triggers:
- trigger: webhook
allowed_methods:
- POST
- PUT
- GET
local_only: true
webhook_id: -PZhSAAVRpt7TmNkmUQoovCgf
conditions: []
actions:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.lampe_insel_4
mode: single
- id: '1738249770736'
alias: Toggle Insel 4 lights on webhook
description: ''
triggers:
- trigger: webhook
allowed_methods:
- POST
- PUT
- GET
local_only: true
webhook_id: -Rl0Fwyrlk84b7peLkzf66rVz
conditions: []
actions:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.lampe_insel_4
mode: single