ESPHome Light Effects?

Yes it does. It would be incomprehensible as a display except for someone ‘in the know’. It sounds like something only an engineer or a movie set designer would come up with.

wopr

1 Like

Let me elaborate - Bin collection is on Wed … its the green bin and the brown bin. I’d want half my LEDs in the strip to be green and the other half to be brown

Catch my drift?

Are you using wled or esphome?

Nothing yet - just planning it out. I have learned the hard way to check Home Assistant support before purchasing hardware :wink:

1 Like

I would go for wled.

The latest version of WLED is 4 months old… :weary:
Doesn’t look like they’re working on it as actively as before. Or maybe it’s perfect now…

1 Like

I’ve been on the 0.85 version of WLED for at least 6 months now. The new version (0.90_b2 I think) is supposed to be a LOT better. WLED doesn’t do a lot of releases, but when they do, they are usually packed with new stuff. With that said, along with the WLED binaries, there has been a LOT of work done on the native integration with HA.

1 Like

That’s great to hear will try it out soon. Please let us know if you do try the latest beta, if it’s stable etc

Will do. I have a few NodeMCUs that I plan on getting upgraded today (but probably tomorrow sigh).

1 Like

I’ve been running 0.9.0-b1 since it released and it has been rock solid.

2 Likes

Yay! 0.85 (and 0.86 as well) had that horrible WiFi drop off bug. Really annoying to have to go an reset NodeMCUs that are tucked away in my attic every few days. LOL

Ahhh!

I needed it for my LED strip which has a esp01_1m board and the latest version which has a esp01_1m release is 0.8.5 lol

Can someone please confirm I’m not looking at it wrong?

Also, how can I flash it to a device that doesn’t have a usb port? lol

That is not how I read the release notes. The 0.86 release notes say

Note regarding ESP01:
ESP01 with 512k flash no longer supports Alexa, Blynk or Hue sync interfaces. If you use them, please do not update.
ESP01 with 1MB flash either supports OTA updates OR the above interfaces, just choose the respective binary.
From the next version onward, it will very likely be impossible for me to maintain 512k ESP01 support.
ESP01 1M will stay supported, although OTA updates will not be possible.
To get the most out of WLED, I highly recommend you to upgrade to a board with 4MB flash.

Either OTA if that is available to you, or using a FTDI.

1 Like

Hey,
I just wanted to drop my Custom Lambda Effects. Maybe it will help someone.

      - addressable_lambda:
          name: "Expo Light"
          update_interval: 16ms
          lambda: |-
            static int x = -400;
            float y = 0.35+0.65*exp(-pow(x, 2)/49000);
            int8_t r = ceil(current_color.r * y);
            int8_t g = ceil(current_color.g * y);
            int8_t b = ceil(current_color.b * y);
            it.all() = ESPColor(r,g,b);
            x += 1;
            if (x == 400)
              x = -400;
      - addressable_lambda:
          name: "Wipe In"
          update_interval: 12ms
          lambda: |-
            static int x = 0;
            if (initial_run) {
              x = 0;
              it.all() = ESPColor::BLACK;
            }
            if (x < it.size()) {
              it[x] = current_color;
              x += 1;
            }
      - addressable_lambda:
          name: "Wipe Out"
          update_interval: 12ms
          lambda: |-
            static int x = 0;
            if (initial_run) {
              x = it.size();
            }
            if (x > 0) {
              x -= 1; 
              it[x] = ESPColor::BLACK;
            }
12 Likes

Hey 7h30n3!

Thanks for the lambda posts! The wipe in and out is not working, due to an was not declared in this scope for initial_run. Any suggestions? Expo runs fine.

I want to create a affect for my garden. I have 10 lights, all driven by 8 ws2812b leds. For start I want to let bulb 1 and 6 to glow up, followed by 2 and 7 etc

Someone any idea?

Thank you and a great weekend!

I think your problems should be gone, when you use the dev or the latest beta release of ESPHome., because the Wipe effect makes use of this commit: https://github.com/esphome/esphome/pull/1035

This is how you update to the latest beta: https://esphome.io/guides/faq.html#how-do-i-update-to-the-latest-version

super! Thank you! I’ll give it a shot

It worked! Dev version has better UI aswell. I have another problem and maybe someone here can help me;
I made 10 garden lights with in each light 8 ws2812b leds( in a circle)

I’d like a wipe-in and out effect with the lights on both sides of the garden fading in or out with effect.

So the effect should be: light 1 and 6 fade in, light 2 and 7 fade in etc…
I’ve been practicing with range, but I get stuk. I’ve to turn on leds 1 to 8 and 40 to 48 simultaneously. after that 9 to 16 an 49 to 57 should turn on, while the first-ones stay on.

This is the code I have now, but no luck for me…

      - addressable_lambda:
          name: "Wipe In"
          update_interval: 50ms
          lambda: |-
            static int x = 40;
            static int y = 0;
            if (initial_run) {
              x = 40;
              y = 0;
              it.all() = ESPColor::BLACK;
            }
            if (x < it.size(), (y < it.size())) {
              it[x, y] = current_color;
              y += 1;
              x += 1;
            }

Hope I’m clear :stuck_out_tongue: and someone can help me :slight_smile:

My scan lambda:

- addressable_lambda:
    name: Blue Scan
    update_interval: 25ms
    lambda:


      static int step = 0;
      static int direction = 1;

      if(initial_run){
        step = 0;
      }


      it[step] = ESPColor(0,0,255);
      if(step >0 && step < it.size()){
        it[step + (direction * -1)] = ESPColor::BLACK;
      }

      step = step + direction;

      if(step >= it.size() || step < 0){
        direction = direction * -1;
        step = step + (direction * 2);
      }
3 Likes

Hey guys,

Trying to create a breathing red for my non addressable ESPHome stips.

Can I use these, and am I putting them into the lights ESP .yaml

Thanks