-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeetings.yaml
88 lines (87 loc) · 2.13 KB
/
meetings.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
# Theses automations are meant to switch a light colors depending on if I'm in a
# meeting and if I'm talking (using the [Mutesync](mutesync.com) device and
# integration), but since I have set it up since my last move I'm not going to
# comment on it. It's quite straightforward so it shouldn't be hard to
# understand.
- alias: Light red when in a meeting
description: ""
trigger:
- platform: state
entity_id: binary_sensor.in_meeting
from: "off"
to: "on"
condition:
- condition: state
entity_id: binary_sensor.muted
state: "on"
action:
- service: light.turn_on
data:
color_name: blue
target:
device_id: d46e18f81ffadbf162f2d7d4ec0491a3
mode: single
- alias: Light red when in a meeting
description: ""
trigger:
- platform: state
entity_id: binary_sensor.in_meeting
from: "off"
to: "on"
condition:
- condition: state
entity_id: binary_sensor.muted
state: "off"
action:
- service: light.turn_on
data:
color_name: red
target:
device_id: d46e18f81ffadbf162f2d7d4ec0491a3
mode: single
- alias: Light red when talking
description: ""
trigger:
- platform: state
entity_id: binary_sensor.muted
from: "on"
to: "off"
condition: []
action:
- service: light.turn_on
target:
device_id: d46e18f81ffadbf162f2d7d4ec0491a3
data:
color_name: red
mode: single
- alias: Light red when talking
description: ""
trigger:
- platform: state
entity_id: binary_sensor.muted
from: "off"
to: "on"
condition:
- condition: state
entity_id: binary_sensor.in_meeting
state: "on"
action:
- service: light.turn_on
target:
device_id: d46e18f81ffadbf162f2d7d4ec0491a3
data:
color_name: blue
mode: single
- alias: Light off when the meeting is finished
description: ""
trigger:
- platform: state
entity_id: binary_sensor.in_meeting
from: "on"
to: "off"
condition: []
action:
- service: light.turn_off
target:
device_id: d46e18f81ffadbf162f2d7d4ec0491a3
mode: single