-
Notifications
You must be signed in to change notification settings - Fork 2
/
automations.yaml
182 lines (182 loc) · 4.38 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
- id: '1608064983650'
alias: Sonette
description: Declenchement sonette
trigger:
- platform: device
domain: mqtt
device_id: 16c2311e83a1fd36abebb1374eaa0ab1
type: action
subtype: vibration
discovery_id: 0x00158d000586ab89 action_vibration
- platform: device
device_id: 89fb164ae8e8aa9a2dd08795c0e50aba
domain: nest
type: doorbell_chime
condition:
- type: is_not_open
condition: device
device_id: 9195a010c6c7c13bfd60ff5a2243360b
entity_id: binary_sensor.hall0_contact_entrydoor_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 5
action:
- service: script.doorbell_ring
data: {}
- delay: 00:00:15
mode: single
- id: '1627060786145'
alias: '[Interrupteur] Cuisine'
description: ''
use_blueprint:
path: twanislas/mqtt-philips-hue-dimmer-switch.yaml
input:
dimmer: sensor.living_lightswitch_action
light:
device_id: ba29a4c13f844cc2d3bce57b1c23057d
- id: '1627066165218'
alias: '[AutoLumière] Hall rez'
description: ''
use_blueprint:
path: twanislas/mqtt-philips-hue-motion-sensor.yaml
input:
modect: binary_sensor.hall0_modect_occupancy
light:
entity_id: light.hall0_bulb_ceiling
- id: '1628182041461'
alias: '[AutoLumière] Allumage salon'
description: Allume les lumières dans le salon au coucher du soleil
trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
below: '7'
condition:
- condition: numeric_state
entity_id: zone.home
above: '0'
- condition: or
conditions:
- condition: state
entity_id: light.living
state: 'off'
- condition: numeric_state
entity_id: light.living
attribute: brightness
below: '127'
action:
- service: light.turn_on
target:
entity_id: light.living
data:
transition: 600
profile: default
mode: single
- id: '1628276977776'
alias: '[AutoLumière] Allumage véranda'
description: Allume les lumières dans la véranda au coucher du soleil
trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
below: '3'
condition:
- condition: numeric_state
entity_id: zone.home
above: '0'
- condition: or
conditions:
- condition: state
entity_id: light.veranda
state: 'off'
- condition: numeric_state
entity_id: light.veranda
attribute: brightness
below: '127'
action:
- service: light.turn_on
data:
transition: 600
profile: default
target:
entity_id: light.veranda
mode: single
- id: '1641397061400'
alias: '[AutoLumière] Extinction véranda'
description: Eteint les lumières dans la véranda au lever du soleil
trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
above: '3'
condition:
- condition: numeric_state
entity_id: zone.home
above: '0'
- condition: state
entity_id: light.veranda
state: 'on'
action:
- service: light.turn_off
target:
area_id: veranda
data:
transition: 600
mode: single
- id: '1648389329783'
alias: '[Interrupteur] Salle de bain'
description: ''
use_blueprint:
path: twanislas/mqtt-philips-hue-smart-button.yaml
input:
button: sensor.bathroom_lightswitch_action
light:
entity_id: light.bathroom
- id: '1649796028597'
alias: '[AutoLumière] Salle de bain'
description: ''
use_blueprint:
path: twanislas/mqtt-philips-hue-motion-sensor.yaml
input:
modect: binary_sensor.bathroom_modect_occupancy
light:
entity_id: light.bathroom
timeout: 300
illuminance: 15
- id: '1651439161133'
alias: '[AutoLumière] Guirlande jardin'
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.chemin_person
- sensor.chemin_car
above: '0'
condition:
- condition: sun
after: sunset
- condition: state
entity_id: light.outside_garden_stringlights
state: 'off'
action:
- service: light.turn_on
data: {}
target:
entity_id: light.outside_garden_stringlights
- wait_for_trigger:
- platform: numeric_state
entity_id:
- sensor.chemin_person
- sensor.chemin_car
for:
hours: 0
minutes: 1
seconds: 0
below: '1'
- service: light.turn_off
data: {}
target:
entity_id: light.outside_garden_stringlights
mode: single