-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetaplug_1234.yaml
75 lines (59 loc) · 1.06 KB
/
detaplug_1234.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
substitutions:
devicename: detaplug_1234
name: Appliance
hotspot: Appliance WiFi
password: Password!
# static_ip: 10.0.0.XX
esphome:
name: $devicename
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret ssid
password: !secret psk
fast_connect: on
# manual_ip:
# static_ip: $static_ip
# gateway: 10.0.0.1
# subnet: 255.255.255.0
ap:
ssid: $hotspot
password: $password
captive_portal:
web_server:
port: 80
logger:
api:
password: !secret api_pwd
ota:
password: !secret api_pwd
text_sensor:
- platform: wifi_info
ip_address:
name: $name IP Address
binary_sensor:
- platform: status
name: $name Status
- platform: gpio
pin: GPIO1
name: $name Button
on_press:
- switch.toggle: relay
sensor:
- platform: wifi_signal
name: $name WiFi Signal
update_interval: 60s
switch:
- platform: gpio
name: $name
pin: GPIO14
id: relay
on_turn_on:
- switch.turn_on: led
on_turn_off:
- switch.turn_off: led
- platform: gpio
name: $name LED
id: led
pin: GPIO13
inverted: True