Ledstrip simple got the biggest update in centuries. Now with 100% less confusion.

This commit is contained in:
Nicolas Bachschwell 2024-06-11 10:38:05 +02:00
parent 1d0c3fd07b
commit e1a7d166e5
Signed by: NBSgamesAT
GPG Key ID: 2D73288FF7AEED2F

View File

@ -1,11 +1,26 @@
substitutions:
device_name: ledstrip_mic-holder #ledstrip_mic-holder, ledstrip_stairs, teststrip2
entity_prefix: nbs_mic # nbs_mic, stairs, test2_
led_count: "32" # 32, 56, 191
collection_name: mic_holder #mic_holder, stais, test2
device_name_mic_holder: ledstrip-mic-holder
entity_prefix_mic_holder: nbs_mic
led_count_mic_holder: "32"
device_name_stais: ledstrip-stairs
entity_prefix_stairs: stairs
led_count_stairs: "191"
device_name_test2: teststrip2
entity_prefix_test2: test2
led_count_test2: "56"
esphome:
name: ${device_name} # teststrip2, ledstrip_stairs, mic-holder
platform: ESP8266
name: ${device_name_${collection_name}}
project:
name: "nbsgamesat.simple-ledstrip"
version: "1.0.0"
esp8266:
board: nodemcuv2
# Enable logging
@ -22,21 +37,14 @@ wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# use_address: teststrip2.local
mqtt:
broker: !secret mqtt_broker_1
client_id: "teststrip"
username: !secret mqtt_broker_1_username
password: !secret mqtt_broker_1_password
light:
- platform: neopixelbus
type: GRB
variant: WS2811
pin: D5
num_leds: ${led_count} # 56, 191
name: ${entity_prefix}_ledstrip
num_leds: ${led_count_${collection_name}} # 56, 191
name: ${entity_prefix_${collection_name}}_ledstrip
effects:
- addressable_rainbow:
- addressable_rainbow: