-
Notifications
You must be signed in to change notification settings - Fork 0
/
blaster.yaml
71 lines (62 loc) · 1.33 KB
/
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
esphome:
name: laundry-bridge
esp8266:
board: d1_mini
# Enable logging
logger:
web_server:
port: 80
# Enable Home Assistant API
api:
# encryption:
# key: "TZn0rOGyjjt+QJRU1IeoWENkdcUkkwl3CdqLAgds9KE="
ota:
password: !secret esp_home_ota_pw
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret domain
remote_receiver:
pin:
number: D6
inverted: true
mode:
input: true
pullup: true
dump:
- lg:
- samsung:
# - nec
remote_transmitter:
pin: D2
carrier_duty_percent: 50%
mqtt:
broker: 192.168.2.250
on_message:
topic: lounge-receiver/ir/receive
then:
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: !lambda |-
std::string str = x;
std::vector<int> v;
char * token;
char seps[] = ",";
token = strtok (&str[0],seps);
while (token != NULL)
{
v.push_back( atoi(token) );
token = strtok (NULL, seps);
}
return v;
switch:
- platform: template
name: "Samsung TV Power ON"
turn_on_action:
remote_transmitter.transmit_samsung:
data: 0xE0E09966
- platform: template
name: "Samsung TV Power OFF"
turn_on_action:
remote_transmitter.transmit_samsung:
data: 0xE0E019E6