-
Notifications
You must be signed in to change notification settings - Fork 0
/
.s20.yaml
54 lines (45 loc) · 948 Bytes
/
.s20.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
esphome:
name: ${devicename}
platform: ESP8266
board: esp01_1m
wifi:
networks:
- ssid: !secret wifi_ssid_1
password: !secret wifi_password_1
- ssid: !secret wifi_ssid_2
password: !secret wifi_password_2
domain: !secret wifi_domain
ap:
ssid: ${devicename}_fallback_hotspot
password: !secret password
captive_portal:
logger:
api:
password: !secret password
ota:
password: !secret password
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: ${devicename}_button
on_press:
- switch.toggle: relay
- platform: status
name: ${devicename}_status
switch:
- platform: gpio
name: ${devicename}_relay
pin: GPIO12
id: relay
output:
- platform: esp8266_pwm
id: s20_green_led
pin: GPIO13
inverted: True
light:
- platform: monochromatic
name: ${devicename}_green_led
output: s20_green_led