-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
85 lines (85 loc) · 2.32 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
- id: '1602970233608'
alias: Mi Button Dining Room Single Press
description: ''
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.mibutton_dining
click_type: single
condition: []
action:
- service: media_player.play_media
entity_id: media_player.google_home
data:
entity_id: media_player.google_home
media_content_id: https://jasonsavard.com/sounds/ding.ogg
media_content_type: audio/ogg
mode: single
- id: '1603049096680'
alias: Notify me when motion is detected at main entry
description: ''
trigger:
- platform: device
domain: binary_sensor
entity_id: binary_sensor.motion_entry_50b6
device_id: 9446c182001d11eb99bbd71d6c07a148
type: motion
condition: []
action:
- service: media_player.play_media
data:
entity_id: media_player.google_home
media_content_id: https://jasonsavard.com/sounds/ios.ogg
media_content_type: audio/ogg
mode: single
- id: '1606525914238'
alias: When motion is detected in basement, turn on lightstripe
description: ''
trigger:
- type: motion
platform: device
device_id: 94470007001d11eb84e5bbc485fc1517
entity_id: binary_sensor.motion_basement_51d2
domain: binary_sensor
condition: []
action:
- domain: light
entity_id: light.yeelight_stripe_0x0000000003426916
device_id: 26b8e5c530f411ebae68e18886b02859
type: turn_on
mode: single
- id: '1614497976602'
alias: Mi button toggles Xbox switch
description: ''
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d0003502655
click_type: single
condition: []
action:
- type: toggle
device_id: 5b5134b207345ccbc2473cd4d5f51616
entity_id: switch.xbox_switch
domain: switch
mode: single
- id: '1615594839919'
alias: Notify me when Mi Button Garage is pressed
description: ''
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.mibutton_garage
click_type: single
condition: []
action:
- service: media_player.play_media
data:
entity_id: media_player.google_home
media_content_id: https://jasonsavard.com/sounds/ding.ogg
media_content_type: audio/ogg
entity_id: media_player.google_home
mode: single