-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbedroom_1.yaml
81 lines (73 loc) · 1.4 KB
/
bedroom_1.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
---
substitutions:
device: bedroom-1
name: Slaapkamer
location: ${name}
reboot_timeout: 14d
update_interval: 10min
esphome:
name: ${device}
platform: ESP8266
board: esp01_1m
<<: !include common/common.yaml
logger:
level: INFO
baud_rate: 0
i2c:
sda: TX
scl: RX
sensor:
- !include common/sensor/wifi-signal.yaml
- !include common/sensor/uptime.yaml
- !include common/sensor/bme280.yaml
binary_sensor:
- !include common/binary_sensor/status.yaml
- platform: gpio
id: button_1
pin:
number: GPIO0
<<: &input_pullup
mode: INPUT_PULLUP
inverted: true
on_press:
then:
- light.toggle: nachtlampje_alex
- platform: gpio
id: button_2
pin:
number: GPIO9
<<: *input_pullup
on_press:
then:
- light.toggle: nachtlampje_joyce
- platform: gpio
id: button_3
pin:
number: GPIO10
<<: *input_pullup
on_press:
then:
- switch.toggle: tv
output:
- platform: gpio
pin: GPIO12
id: relay_1
- platform: gpio
pin: GPIO5
id: relay_2
light:
- platform: binary
name: Nachtlampje Alex
output: relay_1
id: nachtlampje_alex
- platform: binary
name: Nachtlampje Joyce
output: relay_2
id: nachtlampje_joyce
switch:
- !include common/switch/restart.yaml
- platform: gpio
pin: GPIO4
name: ${name} TV
id: tv
icon: mdi:television