forked from dashdrum/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquad.yaml
109 lines (89 loc) · 1.84 KB
/
quad.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
substitutions:
device_name: quad
upper_device_name: Quad LED
esphome:
name: quad
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: !secret wifi_iot_ssid
password: !secret wifi_iot_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Quad Fallback Hotspot"
password: !secret hotspot_password
captive_portal:
web_server:
port: 80
button:
- platform: restart
name: $upper_device_name Restart
sensor:
- platform: wifi_signal
name: $upper_device_name WiFi Signal
update_interval: 30min
icon: mdi:wifi
time:
- platform: sntp
id: esptime
timezone: America/Detroit
servers:
- 0.pool.ntp.org
- 1.pool.ntp.org
light:
- platform: fastled_clockless
chipset: WS2811
rgb_order: GRB
pin: GPIO2
num_leds: 37
id: seg_0
name: $upper_device_name Segment 0
internal: true
- platform: fastled_clockless
chipset: WS2811
rgb_order: GRB
pin: GPIO12
num_leds: 37
id: seg_1
name: $upper_device_name Segment 1
internal: true
- platform: fastled_clockless
chipset: WS2811
rgb_order: GRB
pin: GPIO13
num_leds: 37
id: seg_2
name: $upper_device_name Segment 2
internal: true
- platform: fastled_clockless
chipset: WS2811
rgb_order: GRB
pin: GPIO15
num_leds: 37
id: seg_3
name: $upper_device_name Segment 3
internal: true
- platform: partition
id: $device_name
name: $upper_device_name
segments:
- id: seg_0
from: 0
to: 36
- id: seg_1
from: 0
to: 36
- id: seg_2
from: 0
to: 36
- id: seg_3
from: 0
to: 36
effects: !include include/led_effects.yaml