Skip to content

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

Notifications You must be signed in to change notification settings

thehookup/Holiday_LEDs_2.0

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages