Ledstrip simple got the biggest update in centuries. Now with 100% less confusion.
This commit is contained in:
parent
1d0c3fd07b
commit
e1a7d166e5
@ -1,11 +1,26 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
device_name: ledstrip_mic-holder #ledstrip_mic-holder, ledstrip_stairs, teststrip2
|
collection_name: mic_holder #mic_holder, stais, test2
|
||||||
entity_prefix: nbs_mic # nbs_mic, stairs, test2_
|
|
||||||
led_count: "32" # 32, 56, 191
|
|
||||||
|
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:
|
esphome:
|
||||||
name: ${device_name} # teststrip2, ledstrip_stairs, mic-holder
|
name: ${device_name_${collection_name}}
|
||||||
platform: ESP8266
|
project:
|
||||||
|
name: "nbsgamesat.simple-ledstrip"
|
||||||
|
version: "1.0.0"
|
||||||
|
|
||||||
|
esp8266:
|
||||||
board: nodemcuv2
|
board: nodemcuv2
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
@ -22,21 +37,14 @@ wifi:
|
|||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
fast_connect: true
|
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:
|
light:
|
||||||
- platform: neopixelbus
|
- platform: neopixelbus
|
||||||
type: GRB
|
type: GRB
|
||||||
variant: WS2811
|
variant: WS2811
|
||||||
pin: D5
|
pin: D5
|
||||||
num_leds: ${led_count} # 56, 191
|
num_leds: ${led_count_${collection_name}} # 56, 191
|
||||||
name: ${entity_prefix}_ledstrip
|
name: ${entity_prefix_${collection_name}}_ledstrip
|
||||||
effects:
|
effects:
|
||||||
- addressable_rainbow:
|
- addressable_rainbow:
|
||||||
- addressable_rainbow:
|
- addressable_rainbow:
|
||||||
|
Loading…
Reference in New Issue
Block a user