-
Notifications
You must be signed in to change notification settings - Fork 0
/
ir-remote-livingroom.yaml
99 lines (85 loc) · 4.81 KB
/
ir-remote-livingroom.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
substitutions:
device_name: "IR Remote Livingroom"
espname: "ir-remote-livingroom"
room: "Livingroom"
esphome:
name: '${espname}'
comment: 'ESP32S2'
platformio_options:
board_build.f_flash: 40000000L
board_build.flash_mode: dio
board_build.flash_size: 4MB
board_build.extra_flags:
- "-DARDUINO_USB_CDC_ON_BOOT=0" # Override, defaults to '-DARDUINO_USB_CDC_ON_BOOT=1'
esp32:
board: lolin_s2_mini
variant: ESP32S2
framework:
type: esp-idf
packages:
wifi: !include common/wifi.yaml
network_diagnostics: !include common/network_diagnostics.yaml
base_config: !include common/base_config.yaml
status_led:
pin: GPIO15
remote_receiver:
pin:
number: GPIO7
inverted: true
mode:
input: true
pullup: true
dump: raw
buffer_size: 100kB
remote_transmitter:
pin: GPIO33
carrier_duty_percent: 50%
button:
- platform: template
name: "Turn On ${room} Receiver"
icon: "mdi:power"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 001f 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001f 000a 001f 000a 0046 000a 0047 000a 0046 000a 0046 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "Turn Off ${room} Receiver"
icon: "mdi:power-off"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 001e 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001f 000a 0047 000a 001e 000a 0047 000a 0046 000a 0046 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "Turn On/Off ${room} Speakers"
icon: "mdi:speaker-wireless"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 001f 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001f 000a 001f 000a 0046 000a 0047 000a 0046 000a 0046 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "${room} Volume Up"
icon: "mdi:volume-plus"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 001f 000a 001e 000a 001e 000a 0047 000a 0046 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000a 0046 000a 001e 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "${room} Volume Down"
icon: "mdi:volume-minus"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 001e 000a 0047 000b 001e 000a 001e 000a 0047 000a 0046 000a 0046 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001e 000a 0047 000a 001e 000a 0047 000b 0046 000a 001e 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "Set ${room} Channel to TV"
icon: "mdi:television-classic"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 001f 000b 001e 000a 0046 000a 001f 000a 001e 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000b 001e 000a 0046 000a 0047 000a 001e 000a 001e 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "Set ${room} Channel to Phono"
icon: "mdi:record-player"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 0046 000a 0047 000a 001e 000a 001e 000a 001f 000a 001e 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001e 000a 001f 000a 001e 000a 0047 000a 0046 000a 0046 000a 0047 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"
- platform: template
name: "Mute ${room} Speakers"
icon: "mdi:volume-mute"
on_press:
- remote_transmitter.transmit_pronto:
data: "0000 006b 0000 0020 000a 001f 000a 0047 000a 001e 000a 001e 000a 001f 000a 001e 000a 001f 000a 001e 000a 001e 000a 0047 000a 0046 000a 0047 000b 0046 000a 001e 000a 001f 000a 06a1 000b 001e 000a 0046 000a 001f 000a 001e 000a 001e 000a 0047 000a 0046 000a 0047 000a 0046 000a 001e 000a 001f 000a 001e 000a 001f 000b 0046 000a 0046 000a 06a2"