How To: Setup Effects with the Red Series Smart LED Strip | Hubitat

How To: Setup Effects with the Red Series Smart LED Strip | Hubitat

Intro

The process is very similar to setting up a notification on our switch, dimmer, and fan + light using the installed device driver. For example, you can have the strips flash red and blue like police lights when your alarm is triggered. The “would be” criminal thinks the police have already arrived and high tail it out of there. We will show you how to do this a little later in this article.

First, let’s outline the different types of effects that exist on this strip. They are broken down into 3 categories:

  1. Quick Effects: The same as notifications on our switch line
  2. Custom Effects: Allows you to combine multiple colors, transitions, timing, etc. to create a customized effect
  3. Pixel Effects: There are currently 46 pixel effects pre-programmed into the controller with some really cool animations that take advantage of the individually addressable LEDs - More will be added via firmware update based on community feedback (LZW45 - Pixel Effects List)

Let’s go through some examples of how to implement these effects in Hubitat.


Resources

Device Handler (mandatory) - LZW45 Device Driver Instructions
Quick Effect Calculator - Inovelli Toolbox (nathanfiscus.github.io)

Creating Quick Effects

Like mentioned above, quick effects are similar to notifications on our switch line. Let’s create a simple quick effect to turn the strip purple and have a chase effect when the front door is unlocked between sunset and sunrise: 

  1. Open up your Hubitat web interface, click on, "Devices" and click on your LZW45
  2. Scroll to where it says, "Quick Effect 1" (you'll see options for color, level, duration, and effect)
  3. In this example, since we want the lightstrip to flash red once the motion sensor is triggered, we'll change the values to the following:
    1. Quick Effect 1 - Color = Violet             
    2. Quick Effect 1 - Level = 100%
    3. Quick Effect 1 - Duration = Indefinitely
    4. Quick Effect 1 - Effect = Chase 

  4. Click, "Save Preferences"        
  5. Now you should see the Quick Effect listed underneath your controller on the main page:

  6. That is it for the Quick Effect. Feel free to use this child device in Rule Machine to create an automation where if motion is detected, this child device will turn on.


Creating Custom Effects

In this example, we can build custom effects using the four dimensions above (color, level, duration, and effect). We're essentially going to modify the built in Quick Effects. In this example, we'll have the LED flash Red & Blue when an alarm is triggered. We'll try our best to simulate police lights. 
  1. Start by opening this site up in a separate tab (thanks Nathan Fiscus for the amazing tool!):  Inovelli LED Strip Toolbox (nathanfiscus.github.io)
  2. First, click on, "Time Unit" and select, 100ms

  3. Now click on, "Add New Effect", enter the following values and click, "Save":
    1. Color = Red
    2. Effect = Flash
    3. Brightness Level = 99
    4. Duration = 5

  4. Click on, "Add New Effect", enter the following values and click, "Save":
    1. Color = Blue
    2. Effect = Flash
    3. Brightness Level = 99
    4. Duration = 5

  5. Keep the iterations at indefinitely to keep the effect going
  6. Now click on, "Show Parameter Values" and you should see the following:
    1. Parameter 22: 8802
    2. Parameter 23: 25443
    3. Parameter 24: 257
    4. Parameter 30: 255

  7. Now open up your Hubitat web interface, locate your LZW45 and click on it
  8. Scroll down to where it says, "Custom Effect Start" and enter in all four values above separated by commas: 8802,25443,1285,255

  9. Click, "Custom Effect Start" and it should start your custom effect.


Creating Pixel Effects

At the date/time this article was written (Jan 12, 2021) there are 46 built in pixel effects (on firmware version 1.20). The full list can be found here: LZW45 Pixel Effects.

In this example, we can select the Aurora Pixel Effect and let it run at 100%. Before we do so, remember, the Device Driver needs to be installed. Let's begin:
  1. Open up the Hubitat web interface and select your LZW45 
  2. Scroll down to where it says, "Pixel Effect Start" and enter in the following:
    1. Pixel Effect Start = 46 = Aurora Effect (# from the LZW45 Pixel Effect List)
    2. Pixel Effect Level = 100 = Brightness Level

  3. Now click, "Pixel Effect Start" and it should start your custom pixel effect
That's it -- you now have your Pixel Effect running on your lightstrip!

Pixel Effect Logic

To enter the values as shown in the screenshot above (ie: 46, 100) you need to go to the LZW45 Pixel Effect Chart and select the effect you want (ie: 1-46) and the brightness level you want (1-100). As shown above, Aurora (#46 on the chart) and brightness level of 100 yields you the values shown above.