blob: faa4ec1b9d3e8821abcb5ceaf3526f99d8945146 (
plain)
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
|
esphome:
name: 3dprinter-led
friendly_name: "3D Printer LED"
area: Office
on_boot:
priority: -100
then:
- light.control:
id: led_strip
brightness: 50%
red: 70%
green: 70%
blue: 70%
color_brightness: 70%
white: 70%
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
# OTA
ota:
- platform: esphome
password: !secret ota_password
# WiFi Credentials
wifi:
domain: .lan
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Couchlight Fallback Hotspot"
password: !secret wifi_ap_password
captive_portal:
light:
- platform: neopixelbus
name: None
icon: "mdi:led-strip-variant"
id: led_strip
type: GRBW
variant: SK6812
num_leds: 35
pin: D4 # GPIO2
method:
type: esp8266_uart
bus: 1
default_transition_length: 300ms
|