forked from barrenechea/esphome-config-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonoff-s26-8377100060.yaml
58 lines (47 loc) · 1.03 KB
/
sonoff-s26-8377100060.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
esphome:
name: sonoff-s26-8377100060
esp8266:
board: esp8285
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sonoff S26 8377100060"
password: "RjtZjZxp7Ml6"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
# Enable OTA updates
ota:
password: !secret ota_password
# Enable ESPHome status output though green LED
status_led:
pin:
number: GPIO13
inverted: True
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S26 8377100060 Button"
internal: true
on_press:
- switch.toggle: relay
sensor:
- platform: wifi_signal
name: "Sonoff S26 8377100060 WiFi Signal"
update_interval: 60s
switch:
- platform: gpio
name: "Sonoff S26 8377100060 Relay"
pin: GPIO12
id: relay
- platform: restart
name: "Sonoff S26 8377100060 Restart"