forked from dreamcmi/computer_remote_power_on_card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esphome.yaml
57 lines (48 loc) · 1023 Bytes
/
esphome.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
esphome:
name: boot
platform: ESP8266
board: esp01_1m
wifi:
ssid: "123456789"
password: "12345678910"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Boot Fallback Hotspot"
password: "kIZuZruEGuCf"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
switch:
- platform: gpio
pin: 14
id: relay
- platform: template
name: "PWR"
icon: "mdi:gate"
turn_on_action:
- switch.turn_on: relay
- delay: 500ms
- switch.turn_off: relay
- platform: gpio
pin: 13
id: relay2
- platform: template
name: "RST"
icon: "mdi:gate"
turn_on_action:
- switch.turn_on: relay2
- delay: 500ms
- switch.turn_off: relay2
- platform: gpio
pin: 14
id: relay3
- platform: template
name: "QPWR"
icon: "mdi:gate"
turn_on_action:
- switch.turn_on: relay
- delay: 5000ms
- switch.turn_off: relay