-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathesp-rgb-lights.yaml
65 lines (57 loc) · 1.26 KB
/
esp-rgb-lights.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
esphome:
name: esp-rgb-lights
platform: ESP8266
board: nodemcuv2
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.0.210
gateway: 192.168.0.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-RGB-Lights Fallback Hotspot"
password: !secret wifi_password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret esp_rgb_lights_encryption_key
# Enable over-the-air updates
ota:
password: !secret esp_rgb_lights_password
light:
- platform: rgb
name: "Under bed"
id: under_bed
red: red_channel
green: green_channel
blue: blue_channel
effects:
- random:
name: "Rainbow"
- random:
name: "Slow Rainbow"
transition_length: 30s
update_interval: 30s
- random:
name: "Fast Rainbow"
transition_length: 4s
update_interval: 5s
- strobe:
output:
- platform: esp8266_pwm
id: red_channel
max_power: 100% # 70%
pin: D6
- platform: esp8266_pwm
id: green_channel
max_power: 100% # 65%
pin: D7
- platform: esp8266_pwm
id: blue_channel
max_power: 100%
pin: D5