-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathWS2812ESPHomeConfig.yaml
70 lines (61 loc) · 1.78 KB
/
WS2812ESPHomeConfig.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
######## THIS IS THE FINAL CODE FOR INTEGRATING A WS2812B LED STIRP IN ESP HOME
### THE FIRST HALF OF THIS WILL BE CREATED AUTOMATICALLY USING THE CONFIGURATOR
esphome:
name: NAME ##### EDIT ME ####
platform: ESP8266
board: d1_mini
wifi:
ssid: "SSID" ##### EDIT ME ####
password: "PASSWORD" ##### EDIT ME ####
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.0.xxx ##### EDIT ME ####
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.0.xxx ##### EDIT ME ####
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Fallback Hotspot"
password: "n9r33gZaFHe9"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
### THIS IS ALL THE ADDED BITS
light:
- platform: fastled_clockless
chipset: WS2812B
pin: D4
num_leds: 60
rgb_order: GRB
name: "Cave LED"
effects:
- random:
- flicker:
name: Flicker Effect With Custom Values
alpha: 95%
intensity: 1.5%
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 10
width: 50
- addressable_color_wipe:
name: Color Wipe Effect With Custom Values
colors:
- red: 100%
green: 0%
blue: 100%
num_leds: 1
- red: 94%
green: 45%
blue: 100%
num_leds: 1
add_led_interval: 100ms
reverse: False
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 100ms
scan_width: 1