-
Notifications
You must be signed in to change notification settings - Fork 18
/
bedroom_2.yaml
84 lines (78 loc) · 1.89 KB
/
bedroom_2.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
---
substitutions:
device: bedroom-2
name: Slaapkamer Achterwand
reboot_timeout: 14d
update_interval: 10min
esphome:
name: ${device}
platform: ESP8266
board: esp01_1m
<<: !include common/common.yaml
<<: !include common/sensors.yaml
<<: !include common/switches.yaml
logger:
level: INFO
baud_rate: 0
remote_receiver:
<<: !include common/rf_receiver.yaml
pin: RX
binary_sensor:
- !include common/binary_sensor/status.yaml
- platform: gpio
id: button_1
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: true
on_press:
then:
- light.toggle: light_1
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
id: rf_button_bedroom_back_wall
rc_switch_raw:
protocol: 1
code: !secret rf_code_bedroom_back_wall
on_press:
then:
- light.toggle: light_1
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
name: RF Button TV Slaapkamer
rc_switch_raw:
protocol: 1
code: !secret rf_code_bedroom_tv
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
name: RF Button Watch TV
rc_switch_raw:
protocol: 1
code: !secret rf_code_watch_tv
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
name: RF Button Watch Media
rc_switch_raw:
protocol: 1
code: !secret rf_code_watch_media
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
name: RF Button Listen Music
rc_switch_raw:
protocol: 1
code: !secret rf_code_listen_music
- platform: remote_receiver
<<: !include common/rf_receiver_sensor.yaml
name: RF Button All Off
rc_switch_raw:
protocol: 1
code: !secret rf_code_all_off
output:
- platform: gpio
pin: GPIO12
id: relay_1
light:
- platform: binary
name: ${name}
output: relay_1
id: light_1