· 7 months ago · Feb 22, 2025, 12:10 PM
1esphome:
2 name: rgbw-all-in-one-controller
3 friendly_name: RGBW all-in-one controller
4
5esp32:
6 board: esp32dev
7 framework:
8 type: arduino
9
10# Enable logging
11logger:
12
13# Enable Home Assistant API
14api:
15 encryption:
16 key: "generated_automatically"
17
18ota:
19 password: "generated_automatically"
20
21wifi:
22 ssid: your_wifi_ssid
23 password: your_wifi_password
24
25 manual_ip:
26 # Set this to the IP of the ESP
27 static_ip: 192.168.1.96
28 # Set this to the IP address of the router. Often ends with .1
29 gateway: 192.168.1.1
30 # The subnet of the network. 255.255.255.0 works for most home networks.
31 subnet: 255.255.255.0
32
33 # Enable fallback hotspot (captive portal) in case wifi connection fails
34 ap:
35 ssid: "Rgbw-All-In-One-Controller"
36 password: "generated_automatically"
37
38captive_portal:
39
40output:
41 - platform: ledc
42 pin: 26
43 id: red_output
44
45 - platform: ledc
46 pin: 18
47 id: green_output
48
49 - platform: ledc
50 pin: 19
51 id: blue_output
52
53 - platform: ledc
54 pin: 23
55 id: white_output
56
57light:
58 - platform: rgbw
59 name: "LED strip"
60 red: red_output
61 green: green_output
62 blue: blue_output
63 white: white_output
64 color_interlock: true
65
66i2c:
67 sda: GPIO21
68 scl: GPIO22
69 scan: true
70
71sensor:
72 - platform: sht3xd
73 temperature:
74 name: "Temperature"
75 humidity:
76 name: "Humidity"
77 address: 0x44
78 update_interval: 5s
79
80 - platform: bh1750
81 name: "Illuminance"
82 address: 0x23
83 update_interval: 5s
84
85binary_sensor:
86 - platform: gpio
87 pin: 16
88 name: "Motion 1"
89 device_class: motion
90
91 - platform: gpio
92 pin: 17
93 name: "Motion 2"
94 device_class: motion