-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathesphome.yaml
83 lines (68 loc) · 1.33 KB
/
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
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
esphome:
name: !secret hostname
comment: ATX Power controller
project:
name: valletw.esp-atx-power
version: 1.0.1
esp32:
board: um_tinys2
flash_size: 4MB
variant: esp32s2
framework:
type: esp-idf
version: recommended
sdkconfig_options:
COMPILER_OPTIMIZATION_SIZE: y
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: !secret wifi_fb_ssid
password: !secret wifi_fb_password
captive_portal:
ota:
safe_mode: true
password: !secret ota_password
api:
encryption:
key: !secret api_key
logger:
hardware_uart: UART0
status_led:
pin: 1
output:
- platform: gpio
id: atx_power_button
pin: 37
- platform: gpio
id: atx_reset_button
pin: 38
button:
- platform: output
name: Power reset
icon: mdi:power
output: atx_power_button
duration: 300ms
- platform: output
name: Power hard-reset
icon: mdi:power
output: atx_power_button
duration: 5500ms
- platform: output
name: Reset
icon: mdi:power-cycle
output: atx_reset_button
duration: 300ms
- platform: restart
name: Restart controller
binary_sensor:
- platform: gpio
name: Power State
icon: mdi:power
device_class: power
pin: 20
- platform: gpio
name: HDD Activity
icon: mdi:harddisk
device_class: running
pin: 21