-
Notifications
You must be signed in to change notification settings - Fork 6
/
bedroom.yaml
executable file
·210 lines (202 loc) · 5.07 KB
/
bedroom.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
motion_light_bedroom:
module: motion_light
class: MotionLightAutomation
dependencies:
- presence_app
disabled_states:
presence: noone,vacation
entities:
motion_sensor: binary_sensor.bewegung_schlafzimmer
lux_sensor: sensor.lux_schlafzimmer
lights:
morning: light.kugellampe_schlafzimmer
day: light.decke_schlafzimmer
night: light.kugellampe_schlafzimmer
properties:
lux_threshold: 200
delay: 10
day_state_time:
morning: "05:30:00"
day: "13:30:00"
night: "22:00:00"
brightness_level:
morning: 10
day: 70
night: 10
light_color:
morning: orange
day: orange
night: orange
dimmer_switch_schlafzimmer:
module: switches
class: HueDimmerSwitch
dependencies:
- presence_app
disabled_states:
presence: noone,vacation
entities:
switch: dimmschalter_schlafzimmer
properties:
button_config:
short_press_on:
action_type: service_call
action: turn_on
action_entity: light.schlafzimmer
parameters:
brightness: 255
color_name: white
long_press_on:
action_type: toggle
action: 'on'
action_entity: switch.schalter_entfeuchter
short_press_up:
action_type: brighten
action_entity: light.schlafzimmer
short_press_down:
action_type: dim
action_entity: light.schlafzimmer
short_press_off:
action_type: toggle
action: 'off'
action_entity: light.schlafzimmer
long_press_off:
action_type: service_call
action: turn_on
action_entity: script.schlafzimmer_alles_aus
dimmer_switch_schlafzimmer_sabrina:
module: switches
class: HueDimmerSwitch
dependencies:
- presence_app
disabled_states:
presence: noone,vacation
entities:
switch: dimmschalter_sabrina
properties:
button_config:
short_press_on:
action_type: service_call
action: turn_on
action_entity: light.schlafzimmer
parameters:
brightness: 200
color_name: orange
short_press_off:
action_type: service_call
action: turn_on
action_entity: script.schlafzimmer_alles_aus
long_press_off:
action_type: service_call
action: turn_on
action_entity: script.alles_aus
dimmer_switch_schlafzimmer_master:
module: switches
class: HueDimmerSwitch
dependencies:
- presence_app
disabled_states:
presence: noone,vacation
entities:
switch: dimmschalter_schlafzimmer_master
properties:
button_config:
short_press_on:
action_type: service_call
action: turn_on
action_entity: script.gute_nacht
short_press_up:
action_type: service_call
action: volume_up
action_entity: media_player.spotify
long_press_up:
action_type: service_call
action: media_next_track
action_entity: media_player.spotify
short_press_down:
action_type: service_call
action: volume_down
action_entity: media_player.spotify
long_press_down:
action_type: service_call
action: media_previous_track
action_entity: media_player.spotify
short_press_off:
action_type: service_call
action: turn_on
action_entity: script.schlafzimmer_alles_aus
long_press_off:
action_type: service_call
action: media_pause
action_entity: media_player.spotify
delay: 20
turn_on_sleep_mode_forgot:
module: switches
class: ToggleAtTime
dependencies:
- presence_app
disabled_states:
presence: vacation
entities:
switch: input_boolean.sleep_mode
properties:
action_type: toggle
schedule_time: "03:00:00"
state: "on"
turn_off_sleep_mode_forgot:
module: switches
class: ToggleAtTime
dependencies:
- presence_app
disabled_states:
presence: vacation
days: Saturday,Sunday
entities:
switch: input_boolean.sleep_mode
properties:
action_type: toggle
schedule_time: "05:15:00"
state: "off"
turn_off_sleep_mode_forgot_weekend:
module: switches
class: ToggleAtTime
dependencies:
- presence_app
disabled_states:
presence: vacation
days: Monday,Tuesday,Wednesday,Thursday,Friday
entities:
switch: input_boolean.sleep_mode
properties:
action_type: toggle
schedule_time: "08:00:00"
state: "off"
turn_off_dehumidifier_window_open:
module: switches
class: ToggleOnStateChange
dependencies:
- presence_app
disabled_states:
presence: vacation
entities:
switch: switch.schalter_entfeuchter
target: binary_sensor.fenster_schlafzimmer
properties:
action_type: toggle
state: "off"
target_state: "on"
turn_on_dehumidifier_window_close:
module: switches
class: ToggleOnStateChange
dependencies:
- presence_app
disabled_states:
presence: vacation
modes:
sleep_mode: "on"
entities:
switch: switch.schalter_entfeuchter
target: binary_sensor.fenster_schlafzimmer
properties:
action_type: toggle
state: "on"
target_state: "off"