Update device_name and refactor configuration for LED controller
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_name: esp32-led-controller-polly-pocket
|
device_name: led-controller-polly-pocket
|
||||||
friendly_name: "LED Strip Controller"
|
friendly_name: "LED Strip Controller"
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
@@ -9,7 +9,7 @@ esphome:
|
|||||||
esp32:
|
esp32:
|
||||||
board: esp32-c3-devkitm-1
|
board: esp32-c3-devkitm-1
|
||||||
framework:
|
framework:
|
||||||
type: arduino
|
type: esp-idf
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
@@ -25,7 +25,7 @@ ota:
|
|||||||
password: !secret ota_password
|
password: !secret ota_password
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_iot_ssid
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
|
|
||||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
@@ -41,9 +41,9 @@ web_server:
|
|||||||
|
|
||||||
# LED Light configuration
|
# LED Light configuration
|
||||||
light:
|
light:
|
||||||
- platform: neopixelbus
|
- platform: esp32_rmt_led_strip
|
||||||
type: GRB
|
rgb_order: GRB
|
||||||
variant: WS2812
|
chipset: WS2812
|
||||||
pin: GPIO7
|
pin: GPIO7
|
||||||
num_leds: 60
|
num_leds: 60
|
||||||
name: "${friendly_name}"
|
name: "${friendly_name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user