-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
75 lines (73 loc) · 1.81 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
- id: enable_zigbee_join
alias: Enable Zigbee joining
trigger:
platform: state
entity_id: input_boolean.zigbee_permit_join
to: 'on'
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/bridge/config/permit_join
payload: 'true'
- service: timer.start
data:
entity_id: timer.zigbee_permit_join
- id: disable_zigbee_join
alias: Disable Zigbee joining
trigger:
- entity_id: input_boolean.zigbee_permit_join
platform: state
to: 'off'
action:
- data:
payload: 'false'
topic: zigbee2mqtt/bridge/config/permit_join
service: mqtt.publish
- data:
entity_id: timer.zigbee_permit_join
service: timer.cancel
- id: disable_zigbee_join_timer
alias: Disable Zigbee joining by timer
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.zigbee_permit_join
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/bridge/config/permit_join
payload: 'false'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.zigbee_permit_join
- id: lights_party_on
alias: 'Party Lights On'
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.party
from: 'off'
to: 'on'
action:
service: script.lights_party
- id: lights_party_off
alias: 'Party Lights Off'
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.party
from: 'on'
to: 'off'
action:
- service: script.turn_off
entity_id: script.lights_party
- service: light.turn_on
data_template:
entity_id: light.living_room_lamp_light
rgb_color: [255, 255, 255]
brightness: 255
- delay: 0.1
- service: light.turn_off
data_template:
entity_id: light.living_room_lamp_light