-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathir-blaster.yaml
78 lines (65 loc) · 1.41 KB
/
ir-blaster.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
esphome:
name: ir-blaster
friendly_name: IR Blaster
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "YOUR_ENCRYPTION_KEY"
ota:
password: "fa8aa9e85fdd76f3ae72ad109eceed93"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Ir-Blaster Fallback Hotspot"
password: "Password"
web_server:
port: 80
# remote command reciever
remote_receiver:
pin:
number: 14
inverted: true
dump: all
# Remote Command Transmitter
remote_transmitter:
pin: 4
# Infrared remotes use a 50% carrier signal
carrier_duty_percent: 50%
button:
- platform: template
name: TV Power Toggle
id: PwrTog
on_press:
- remote_transmitter.transmit_sony:
repeat:
times: 3
wait_time: 10ms
data: 0x00000A90
nbits: 12
- platform: template
name: TV Volume Up
id: VolUp
on_press:
- remote_transmitter.transmit_sony:
repeat:
times: 3
wait_time: 10ms
data: 0x00000490
nbits: 12
- platform: template
name: TV Volume Down
id: VolDown
on_press:
- remote_transmitter.transmit_sony:
repeat:
times: 3
wait_time: 10ms
data: 0x00000C90
nbits: 12
captive_portal: