-
Notifications
You must be signed in to change notification settings - Fork 1
/
rgbcontroller_prototype.yaml
95 lines (77 loc) · 1.57 KB
/
rgbcontroller_prototype.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
esphome:
name: rgbcontroller_prototype
platform: ESP8266
board: nodemcuv2
#platformio_options:
#upload_speed: 115200
on_boot:
priority: -120
then:
- light.turn_on:
id: strip
brightness: 100%
red: 100%
green: 0%
blue: 100%
effect: "WLED"
wifi:
ssid: !secret wifi-ssid
password: !secret wifi-pwd
use_address: rgbcontroller-prototype.ak-online.be
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "RGB Controller Fallback Hotspot"
password: !secret fallback-password
mdns:
disabled: true
captive_portal:
# Enable logging
logger:
#level: VERY_VERBOSE
#logs:
# fastled: DEBUG
# sensor: DEBUG
# Enable Home Assistant API
#api:
mqtt:
broker: mqtt.ak-online.be
discovery: true
topic_prefix: esphome/rgbcontroller_prototype
ota:
wled:
web_server:
port: 80
include_internal: true
sensor:
- platform: wifi_signal
name: "WiFi Signal rgbcontroller_prototype"
update_interval: 60s
- platform: rotary_encoder
name: "Test Rotary Encoder"
pin_a: D1
pin_b: D2
min_value: 0
max_value: 255
binary_sensor:
- platform: gpio
pin: D0
name: Test Rotary Encoder Button
output:
- platform: gpio
pin: GPIO04
id: out_led
inverted: true
light:
- platform: binary
id: status
output: out_led
- platform: fastled_spi
id: strip
chipset: APA102
data_pin: D6
clock_pin: D5
num_leds: 30
rgb_order: BGR
effects:
- wled:
- !include effects/ColorShimmerEffect.yaml