-
Notifications
You must be signed in to change notification settings - Fork 0
/
488-2-1(ESPHOME코드).txt
63 lines (50 loc) · 1.25 KB
/
488-2-1(ESPHOME코드).txt
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
esphome:
name: nockanda4
includes:
- esp_rc.h
esp8266:
board: esp01_1m
text_sensor:
- platform: template
name: "Template Text Sensor"
id: template_text
custom_component:
- lambda: |-
EspRC.begin(1);
EspRC.on("nockanda1", []() {
id(template_text).publish_state("CASE1");
});
EspRC.on("nockanda2", []() {
id(template_text).publish_state("CASE2");
});
EspRC.on("nockanda3", []() {
id(template_text).publish_state("CASE3");
});
return {};
button:
- platform: template
name: "ESPNOW btn1"
on_press:
- lambda: EspRC.send("녹칸다 버튼1");
- platform: template
name: "ESPNOW btn2"
on_press:
- lambda: EspRC.send("녹칸다 버튼2");
- platform: template
name: "ESPNOW btn3"
on_press:
- lambda: EspRC.send("녹칸다 버튼3");
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "5540bdfe29301d5b64f04029f61c5a67"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Nockanda4 Fallback Hotspot"
password: "123123123"
captive_portal: