-
Notifications
You must be signed in to change notification settings - Fork 18
/
living_1.yaml
97 lines (88 loc) · 1.64 KB
/
living_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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
substitutions:
device: living-1
name: TV Meubel
location: Woonkamer
reboot_timeout: 14d
update_interval: 10min
esphome:
name: ${device}
platform: ESP8266
board: esp01_1m
<<: !include common/common.yaml
logger:
level: INFO
baud_rate: 0
status_led:
pin:
number: GPIO13
inverted: true
i2c:
sda: GPIO2
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:
- switch.toggle: tv
- platform: gpio
id: button_2
pin:
number: GPIO9
<<: *input_pullup
on_press:
then:
- switch.toggle: receiver
- platform: gpio
id: button_3
pin:
number: GPIO10
<<: *input_pullup
on_press:
then:
- light.toggle: spruitje
- platform: gpio
id: button_4
pin:
number: GPIO14
<<: *input_pullup
on_press:
then:
- switch.toggle: mediaplayer
output:
- platform: gpio
pin: GPIO4
id: relay_3
light:
- platform: binary
name: ${name} Spruitje
output: relay_3
id: spruitje
switch:
- !include common/switch/restart.yaml
- platform: gpio
pin: GPIO12
name: ${name} TV
id: tv
icon: mdi:television
- platform: gpio
pin: GPIO5
name: ${name} Receiver
id: receiver
icon: mdi:speaker
- platform: gpio
pin: GPIO15
name: ${name} Mediaplayer
id: mediaplayer
icon: mdi:kodi