From 05a93e2aa52eee3a615f56f59d40811b55581f77 Mon Sep 17 00:00:00 2001 From: NBSgamesAT Date: Fri, 27 May 2022 08:41:11 +0200 Subject: [PATCH] Ledstrip Simple added. Now, there really is nothing that is remotely finished and can simply be used --- README.md | 8 ++++++ ledstrip_simple.yaml | 65 +++++++++++++++++++++++++++++++++++++++++++ secrets.yaml.template | 14 ++++++++-- 3 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 ledstrip_simple.yaml diff --git a/README.md b/README.md index a95403f..f3fb72b 100644 --- a/README.md +++ b/README.md @@ -68,4 +68,12 @@ Should state ON be sent without any other attribute, the nbs logo is displayed w # Sonoff Stecker 1 (Sonoff Plug 1) Is the base implementation of the Sonoff Power switch. Nothings special. Still here just in case someone wants it. +# Ledstrip Simple +Ledstrip Simple is a basic implementation of a ledstrip using no custom code and works solely on the addressable_ledstrip implementation of espHome. + +There are a few light effects configured so please play around with them for a little. Have fun. + +There is one thing I should mention tho: +At line 34 in the ledstrip_simple.yaml there is a number called num_leds which dictates how many leds there are on the ledstrip. Please change that according to your ledstrip. + More infos are coming soon. \ No newline at end of file diff --git a/ledstrip_simple.yaml b/ledstrip_simple.yaml new file mode 100644 index 0000000..ae60f7a --- /dev/null +++ b/ledstrip_simple.yaml @@ -0,0 +1,65 @@ +esphome: + name: teststrip + platform: ESP8266 + board: nodemcuv2 + +# Enable logging +logger: + +ota: + password: !secret ledsimplepassword + +api: + password: !secret ledsimplepassword + encryption: + key: !secret ledsimplekey + +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: 56 + name: ledstrip + effects: + - addressable_rainbow: + - addressable_rainbow: + name: Snail Rainbow + width: 50 + speed: 3 + - addressable_rainbow: + name: Fast Rainbow + width: 50 + speed: 30 + - addressable_rainbow: + name: Lightning Rainbow + width: 50 + speed: 60 + - addressable_color_wipe: + - addressable_scan: + move_interval: 30ms + - addressable_twinkle: + twinkle_probability: 15% + - addressable_random_twinkle: + twinkle_probability: 15% + - addressable_fireworks: + name: normal + spark_probability: 30% + - addressable_fireworks: + name: '50 Percent' + spark_probability: 50% + - addressable_fireworks: + name: '70 Percent' + spark_probability: 77% diff --git a/secrets.yaml.template b/secrets.yaml.template index 9ca02af..b4d999a 100644 --- a/secrets.yaml.template +++ b/secrets.yaml.template @@ -15,9 +15,17 @@ a3poolpasswd: # A3Pool OTA and native API password a3poolkey: # Native API encryption KEY # Table Tennis Footswitches (No ttf encryption but may be added) -ttfpassword: # A3Pool OTA and native API password +ttfpassword: # TableTennisFootswitch OTA password # ttfkey: # Native API encryption KEY # Table Tennis ledstrip display -ttdpassword: # A3Pool OTA and native API password -ttdkey: # Native API encryption KEY \ No newline at end of file +ttdpassword: # TableTennisPassword OTA and native API password +ttdkey: # Native API encryption KEY + +# Sonoff Stecker (Currently Dartboard Light) +ss1password: # Sonoff Switch 1 OTA and native API password +ss1key: # Native API encryption KEY + +# Ledstrip Simple +ledsimplepassword: # Ledstrip Simple OTA and native API password +ledsimplekey: # Native API encryption KEY \ No newline at end of file