-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonoff-s26-r1.yaml
63 lines (53 loc) · 1.03 KB
/
sonoff-s26-r1.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
esphome:
name: sonoff-s26-r1
esp8266:
board: esp01_1m
board_flash_mode: dout
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_key
ota:
password: !secret api_key
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: on
manual_ip:
static_ip: 192.168.1.53
gateway: 192.168.1.1
subnet: 255.255.255.0
button:
- platform: restart
name: "Sonoff S26 R1 Restart"
- platform: shutdown
name: "Sonoff S26 R1 Shutdown"
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
name: "Sonoff S26 R1 Button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "Sonoff S26 R1 Relay"
pin: GPIO12
id: relay
restore_mode: RESTORE_DEFAULT_OFF
output:
- platform: esp8266_pwm
id: green_led
pin:
number: GPIO13
inverted: true
light:
- platform: monochromatic
name: "Sonoff S26 R1 Green LED"
output: green_led