-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonoff-s31-lite.yaml
88 lines (74 loc) · 1.32 KB
/
sonoff-s31-lite.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
esphome:
name: sonoff-s31-lite
platform: ESP8266
board: esp01_1m
api:
reboot_timeout: 0s
ota:
platform: esphome
wifi:
ssid: "sonoff-s31"
password: "12345678"
ap:
ssid: "sonoff-s31-setup"
password: "12345678"
captive_portal:
web_server:
port: 80
version: 3
local: true
ota: false
auth:
username: "admin"
password: "12345678"
logger:
baud_rate: 0
logs:
sensor: DEBUG
uart:
rx_pin: RX
baud_rate: 4800
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
name: "Button"
internal: true
on_press:
- switch.toggle: relay
text_sensor:
- platform: wifi_info
ip_address:
name: "IP Address"
icon: "mdi:ip-network"
update_interval: 60s
mac_address:
name: "MAC Address"
icon: "mdi:network"
ssid:
name: "Connected SSID"
icon: "mdi:wifi"
update_interval: 60s
sensor:
- platform: wifi_signal
name: "WiFi Signal"
icon: "mdi:signal"
update_interval: 60s
switch:
- platform: gpio
name: "S31 Switch"
icon: "mdi:toggle-switch-variant"
pin: GPIO12
id: relay
restore_mode: RESTORE_DEFAULT_OFF
button:
- platform: restart
name: "Reboot"
icon: "mdi:restart"
time:
- platform: sntp
id: my_time
status_led:
pin:
number: GPIO13