-
Notifications
You must be signed in to change notification settings - Fork 7
/
automations.yaml
53 lines (53 loc) · 1.18 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
- id: '1672951034106'
alias: Turn off paper shredder after 10min
description: ''
trigger:
- platform: device
type: turned_on
device_id: e6d7bf1bbd2e3a497293743075eda631
entity_id: switch.paper_shredder
domain: switch
for:
hours: 0
minutes: 10
seconds: 0
condition: []
action:
- type: turn_off
device_id: e6d7bf1bbd2e3a497293743075eda631
entity_id: switch.paper_shredder
domain: switch
- service: script.notify_joris
data:
message: Paper shredder turned off
expire: 00:01:00
mode: single
- id: '1691673603701'
alias: Turn off Dyson when backdoor is open
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.back_door_contact
for:
hours: 0
minutes: 2
seconds: 0
condition: []
action:
- if:
- condition: state
entity_id: binary_sensor.back_door_contact
state: 'on'
then:
- service: fan.turn_off
data: {}
target:
device_id: 09fe090cedf12eb82a8046fcbc6d24cc
else:
- service: fan.turn_on
data: {}
target:
device_id: 09fe090cedf12eb82a8046fcbc6d24cc
alias: Turn On/Off Dyson
mode: single