• Stars
    star
    199
  • Rank 196,105 (Top 4 %)
  • Language
    C++
  • Created almost 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tested and 100% working, this new version is easier to setup and can support 6 zones dynamically

Holiday_LEDs_2.0

I'm leaving this repository up for reference purposes, but I highly recommend using WLED instead for your holiday lights: https://github.com/Aircoookie/WLED

Currently not working with ESP8266 Core 2.5.2, working on it. For now please use 2.4.2.

This repository is to accompany my Holiday LED 2.0 youtube video:

IMAGE ALT TEXT HERE

this new version is easier to setup and can support 6 zones dynamically

The node-red portion of the configuration is no longer needed, all processing is handled in the arduino code.

Setup Instructions

Fill out the entire USER CONFIGURATION section of the code.

It is recommended that you leave at least 2 zones enabled, leaving only a single zone seems to result in jittery animations.

SK6812 RGBW Use

This library is a drop in replacement for FastLED: https://github.com/coryking/FastLED?fbclid=IwAR2wB4Y355hAVIkJ_OOriP5czAUnqmLCtXT8DnbRf3vbUHPRnAR-ceZjJ74 just switch out your FastLED library folder (arduino/libraries/FastLED) with the one from that link and add #define FASTLED_RGBW at the top of the sketch. I also had to compile with ESP core 2.4.2, but that's an issue with my program, not the library.

Troubleshooting

-If you get a linker error while compiling in arduino, update your ESP8266 boards manager

-Fire animations are not currently working, I made a couple errors when making them modular, I will fix when I get a couple hours to devote to it.

Home Assistant YAML

##This version of the holiday lights code does not require the node red portion
##The "W" slider under the main "holiday LED" light modifies each effect
##The "W" slider under "Glitter" light modifies the frequency of glitter, the RGB selection changes the color of the glitter
##The "W" slider under "Lightning" switch modifies the frequency of lightning.
##You must replace the [MQTT_CLIENT_ID] with the USER_MQTT_CLIENT_NAME you specified in the arduino USER CONFIGURATION section
sensor:
  - platform: mqtt
    name: "Current LED"
    state_topic: "[MQTT_CLIENT_ID]/locator"

light:
  - platform: mqtt
    name: "Holiday Lights"
    command_topic: "[MQTT_CLIENT_ID]/power"
    state_topic: "[MQTT_CLIENT_ID]/powerState"
    brightness_command_topic: "[MQTT_CLIENT_ID]/brightness"
    brightness_state_topic: "[MQTT_CLIENT_ID]/brightnessState"
    brightness_scale: 255
    white_value_command_topic: "[MQTT_CLIENT_ID]/modifier"
    white_value_state_topic: "[MQTT_CLIENT_ID]/modifierState"
    white_value_scale: 500
    effect_command_topic: "[MQTT_CLIENT_ID]/effect"
    effect_state_topic: "[MQTT_CLIENT_ID]/effectState"
    effect_list:
      - Color_Chase
      - Color_Glitter
      - Single_Race
      - Double_Crash
      - Rainbow
      - Blocked_Colors
      - BPM
      - Twinkle
      - Fire
      - Fill_Solid
      - Spooky_Eyes
      - LED_Locator
    retain: true
  - platform: mqtt
    name: "Color 1"
    command_topic: "[MQTT_CLIENT_ID]/ColorPower"
    state_topic: "[MQTT_CLIENT_ID]/powerState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color1"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color1State"
    retain: true
  - platform: mqtt
    name: "Color 2"
    command_topic: "[MQTT_CLIENT_ID]/ColorPower"
    state_topic: "[MQTT_CLIENT_ID]/powerState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color2"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color2State"
    retain: true
  - platform: mqtt
    name: "Color 3"
    command_topic: "[MQTT_CLIENT_ID]/ColorPower"
    state_topic: "[MQTT_CLIENT_ID]/powerState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color3"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color3State"
    retain: true
  - platform: mqtt
    name: "Glitter"
    state_topic: "[MQTT_CLIENT_ID]/glitter/state"
    command_topic: "[MQTT_CLIENT_ID]/addEffects"
    payload_on: "Glitter On"
    payload_off: "Glitter Off"
    rgb_command_topic: "[MQTT_CLIENT_ID]/glitterColor"
    rgb_state_topic: "[MQTT_CLIENT_ID]/glitterColorState"
    white_value_command_topic: "[MQTT_CLIENT_ID]/glitterChance"
    white_value_state_topic: "[MQTT_CLIENT_ID]/glitterChanceState"
    white_value_scale: 255
    retain: true
  - platform: mqtt
    name: "Lightning"
    state_topic: "[MQTT_CLIENT_ID]/lightning/state"
    command_topic: "[MQTT_CLIENT_ID]/addEffects"
    payload_on: "Lightning On"
    payload_off: "Lightning Off"
    white_value_command_topic: "[MQTT_CLIENT_ID]/lightningChance"
    white_value_state_topic: "[MQTT_CLIENT_ID]/lightningChanceState"
    white_value_scale: 500
    retain: true

OpenHAB Support

For Openhab 2.4 support take a look at the addditions here (sitemap, things, rules and items files): https://github.com/JayJayJanssen/openhab-MQTTv2-LED-strip

More Repositories

1

Motorized_MQTT_Blinds

Motorized_MQTT_Blinds
C++
297
star
2

MQTT-Roomba-ESP01

Making an old roomba smarter using and ESP01
C++
119
star
3

Wireless_MQTT_Doorbell

A smart wireless mqtt doorbell from a cheap 433mhz doorbell.
C++
94
star
4

MQTT_Window_Sensors

Wireless MQTT Window Sensors with the ESP-01
C++
80
star
5

RGBW-Sunrise-Animation-Neopixel-

MQTT RGBW Sunrise animation with brightness and color control via MQTT
C++
73
star
6

Node-RED-Examples

Example flows to get started with Node-RED and hass.io
JavaScript
65
star
7

ESP32_Ceiling_Light

An ESP32 based ceiling light with 8 individually dimmable channels
C++
59
star
8

Holiday_LEDS

C++
50
star
9

MQTT_Motorized_Curtains

Stepper motor controlled MQTT curtains - Home Assistant Integrated
C++
47
star
10

shelly1tasmota

Shelly 1 Tasmota .bin file
C++
39
star
11

Shelly-RGBW2

A repository for Shelly RGBW2 control in Home Assistant via MQTT
37
star
12

E131-MQTT-RGBW-Lights

Control Zemismart lights and the Sonoff B1 via E131 (xlights or vixen)
C++
27
star
13

PoolMCU

Pentair and Other Pool Automation with ESP8266
C++
25
star
14

WS2812B_RGB_Classroom_Timer

Custom timer using WS2812B individually addressable LEDs
C++
20
star
15

MQTT_Motorized_Shades

MQTT Motorized Roller Shades
C++
14
star
16

MQTT_Computer_Power

Control your computer's power with a Wemos D1 Mini
C++
13
star
17

Alexa-Enabled-LED-Clock

A project to demonstrate the power of Amazon Alexa Hue emulation
C++
6
star
18

Misc

Misc. Stuff
C++
4
star
19

backups

automated hassio backups
4
star
20

Simple-Timer-Library

Simple Timer Lib
C++
3
star
21

Tesla_Model3

Home Assistant Homekit Tesla Model 3 Integration + Node-RED Flows
2
star
22

HomeSchoolTracker

Alexa Enabled Home School Tracker and Timer
C++
1
star
23

EchoIRControl

IR Control for Echo Dot Bluetooth
C++
1
star