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

zskullz/Holiday_LEDs_2.0

 
 

Repository files navigation

Holiday_LEDs_2.0

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.

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
      - Heartbeat
      - Fireworks
      - Traditional
      - LED_Locator
    retain: true
  - platform: mqtt
    name: "Color 1"
    command_topic: "[MQTT_CLIENT_ID]/ColorSelector/1/Toggle"
    state_topic: "[MQTT_CLIENT_ID]/ColorSelector/1/ToggleState"
    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]/ColorSelector/2/Toggle"
    state_topic: "[MQTT_CLIENT_ID]/ColorSelector/2/ToggleState"
    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]/ColorSelector/3/Toggle"
    state_topic: "[MQTT_CLIENT_ID]/ColorSelector/3/ToggleState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color3"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color3State"
    retain: true
  - platform: mqtt
    name: "Color 4"
    command_topic: "[MQTT_CLIENT_ID]/ColorSelector/4/Toggle"
    state_topic: "[MQTT_CLIENT_ID]/ColorSelector/4/ToggleState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color4"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color4State"
    retain: true
  - platform: mqtt
    name: "Color 5"
    command_topic: "[MQTT_CLIENT_ID]/ColorSelector/5/Toggle"
    state_topic: "[MQTT_CLIENT_ID]/ColorSelector/5/ToggleState"
    rgb_command_topic: "[MQTT_CLIENT_ID]/color5"
    rgb_state_topic: "[MQTT_CLIENT_ID]/color5State"
    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
  - platform: mqtt
    name: "Holiday Lights Zone 1"
    command_topic: "[MQTT_CLIENT_ID]/power/Zone1"
    state_topic: "[MQTT_CLIENT_ID]/powerState/Zone1"
    brightness_command_topic: "[MQTT_CLIENT_ID]/brightness/Zone1"
    brightness_state_topic: "[MQTT_CLIENT_ID]/brightnessState/Zone1"
    brightness_scale: 255
    white_value_command_topic: "[MQTT_CLIENT_ID]/modifier/Zone1"
    white_value_state_topic: "[MQTT_CLIENT_ID]/modifierState/Zone1"
    white_value_scale: 500
    effect_command_topic: "[MQTT_CLIENT_ID]/effect/Zone1"
    effect_state_topic: "[MQTT_CLIENT_ID]/effectState/Zone1"
    effect_list:
      - Color_Chase
      - Color_Glitter
      - Single_Race
      - Double_Crash
      - Rainbow
      - Blocked_Colors
      - BPM
      - Twinkle
      - Fire
      - Fill_Solid
      - Spooky_Eyes
      - Heartbeat
      - Fireworks
      - Traditional
      - LED_Locator
    retain: true
  - platform: mqtt
    name: "Holiday Lights Zone 2"
    command_topic: "[MQTT_CLIENT_ID]/power/Zone2"
    state_topic: "[MQTT_CLIENT_ID]/powerState/Zone2"
    brightness_command_topic: "[MQTT_CLIENT_ID]/brightness/Zone2"
    brightness_state_topic: "[MQTT_CLIENT_ID]/brightnessState/Zone2"
    brightness_scale: 255
    white_value_command_topic: "[MQTT_CLIENT_ID]/modifier/Zone2"
    white_value_state_topic: "[MQTT_CLIENT_ID]/modifierState/Zone2"
    white_value_scale: 500
    effect_command_topic: "[MQTT_CLIENT_ID]/effect/Zone2"
    effect_state_topic: "[MQTT_CLIENT_ID]/effectState/Zone2"
    effect_list:
      - Color_Chase
      - Color_Glitter
      - Single_Race
      - Double_Crash
      - Rainbow
      - Blocked_Colors
      - BPM
      - Twinkle
      - Fire
      - Fill_Solid
      - Spooky_Eyes
      - Heartbeat
      - Fireworks
      - Traditional
      - LED_Locator
    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

  • C++ 100.0%