-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More effects with leds #3480
Comments
Probably not exactly what you are after, but you can set each pixel individually in one hit using the Backlog command, eg. If you have a home automation system with Node Red you could dynamically create and deploy the arrays that way, some discussion here for my solar pv / home consumption usage meter here: |
@roguestreak Thanks for your response!! That's a possible option but I have 178 Leds and I don't want to program them all individually. |
@meesvandenberg What you can do is make a copy of the original file and change that one. If you use Arduino IDE verify it, compile and upload it and test your changings. But when you killed somethings i think you wont get any support for it. So now let's do crazy ;-):
There you have color defintions and the count. These seven (7) RGB defines can be changed. Lets say the first one is: You know the color defines: Help for color defines by the basics, look here: -> For the different types of ws2812 LED's look into xplg_ws2812.ino (Line: 27..55) Different types of RGB order can be: Default in the tasmota user_config.h is: What you have used in your user_config.h (the next two lines are the original one)? Here/there (xplg_ws2812.ino) you can add or change things in a more !!! Think about Line 54 in sdrv_04_light.ino: #define WS2812_SCHEMES 7 But first: change only one scheme for a first impression and testing purpose.
|
If you find the right code you don't have to do them individually, the function can do it for you. Just found this one, which goes VERY heavily into depth, but the final example could be readily tweaked to create a dynamically-generated array of rainbow colours to smoothly fit however many LEDs you have
If you call "createColourArray(178)", that SHOULD(!) (might?) give you a dynamically generated smooth array of rainbow goodness, one element per LED. Next step, which I haven't nutted out, is to loop through that array in such a way that you grab 30 elements out and feed them to the Backlog, then grab the next 30, etc. |
Similar issues added for reference: more effects at: https://github.com/kitesurfer1404/WS2812FX and https://github.com/Aircoookie/WLED |
how do i call the rainbow effect with home assistant or other effects ? thanks |
Please, see examples in the wiki |
@dimalo feature request #4512 added to this list of ws2812 requests: Have you look for this feature in other issues and in the wiki? Is your feature request related to a problem? Please describe. Describe the solution you'd like In other words: The fading effect should not be accomplished by controlling the brightness of all LEDs, but the number of lid LEDs. I imagine three new options:
Describe alternatives you've considered Additional context
SeqFadeMode 2 and 3 should be executed either with half speed or with fading in brightness of each LED in 2 steps (0 -> 50% -> 100%) I WOULD LOVE THAT FEATURE! |
@pinoyyid feature request #4447 added to this list of ws2812 requests: Have you look for this feature in other issues and in the wiki?
Describe the solution you'd like |
@jascdk feature request #4622 added to this list of ws2812 requests: Hi. Would it be possible to integrate a "Breathable LED effect" in the LED light options. Mainly for use in projects to indicate that MQTT / wifi etc. is not connected. I used this code in another project linked below: https://arduining.com/2015/08/20/nodemcu-breathing-led-with-arduino-ide/ It gives a nice effect - a bit more cool than just standard blinking :) |
maybe inspiration for effects from here: https://github.com/kitesurfer1404/WS2812FX ? |
Is there a way to let only one led fade? I tried to set 1 - 3 leds from off to a specified color, but there is no fade effect. The Fade effect only is shown, if i put all pixels on. Is there a way to do this? |
From @computerkoenig at #5470: It would be really nice to have a candlelight effect for normal RGB LEDs. Do you need more informations? Other request: #5701 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Maybe you could also consider the following mode: In my kitchen i will use led pixel strips to illuminate the work area (L shape, 2 x 3m). And i've integrated 2 VL53L1X sensors in the bottom area of the kitchen. If someone approaches the work area, the strip should fade in like SeqFadeMode 2, but the active leds should only be apr. 1m wide and fade out at the edges (--------.:xxXXXXXXxx:.-------). If i move left or right, this led bar should follow. After a certain time of inactivity, the bar should fade out. |
Hello everyone, First of all thank you for this wonderful library. I have found it very useful. I have tried integrating McLighting which uses WS2812fx to provide 50+ effects. If anyone is interested, you can clone and test my fork here. Change Regards, |
Thanks @umar14 for the code, it works! Now I have beautiful led strip with lots of effects controlled by my mighty sonoff. Still need to improve the code thought, for example the led status does not save, and the default led color always turned on after power loss.. |
@thopd88 Glad to see it works for you. You need SPIFFS to be able to store led config on reboot. Sonoff does not support SPIFFS. I tested it with nodemcu board (4M flash with SPIFFS) and it worked. But if you really need to save changes, you can compile with the default mode set to OFF so it boots up blank and then publish payload to sonoff with a retain flag (set to 1). That way whatever mode or speed you publish, it will be republished if the sonoff reboots. I think. |
Hi, Your idea seems to cover all the requests done in this issue. Are you willing to make a Pull Request ? Thanks |
Changing the label Enhancement to Feature Request due to nobody is working on this feature at this moment. Besides, there are already complete mqtt solutions for led effects at: https://github.com/kitesurfer1404/WS2812FX If someone is interested on working on this, please leave a comment. Otherwise the Stale Bot will close it. Thanks everyone for sharing theirs ideas. |
I'm really interested in that. Unfortunately, I can not contribute much to the progress, but I would provide for testing |
Same for me. My programming skills are very limited, but I like blinking things and can only contribute some effects from my own project. |
While additional effects in this project would be great for several use cases if you are doing addressable strips check out WLED https://github.com/Aircoookie/WLED Very easy to install and update. |
@bagobones PR would be welcome |
Closing this issue as nobody is working actively on this. If someone wants to make a PR about this, please do it, and if need help on that, please just ask here or in the Tasmota Support Chat. Adding the label Requested Feature (Hold Over) for future reference. Thanks everyone for sharing their ideas. Very appreciated. |
wonderfull! @a-roz are the WS2812FX-effects from 0 to 55 (=56 total) from the WS2812FX lib. i wanted to check which effects are in the fork an i found no direct descrition on the fork´s readme.md, so i digged into this. maybe only a link to the names in the ws2812fx-effectslist makes it easier to lookup? |
Mine 13..68 is the same of original library 0..55 with offset of 13 Tasmota embedded. If you need details about each of them, better you have a look inside library. "XState" command result also has a field , contains effect name |
Was this ever merged in to the main tree? (As the documentation at https://tasmota.github.io/docs/Commands/#scheme doesn't mention the extra schemes) |
No, Sorry. No one had provided any PR for that. |
So many good things get dropped by the wayside because people don't do PRs... If only I had time... But then again, if I did, I'd also have had time to work on the ADS1115 additional feature I want to implement... 😝 |
Find a motivated developer with spare time :) |
Is that an offer? Otherwise it's two sets of two words that typically do not combine: But the intent is appreciated! 😁 If nobody else does it, I hope to eventually be able to do it, but until then I will have to keep my fingers crossed someone will do it before I finally have some time! |
Are you still on this @FearNaBoinne? Looks like no one else has made a PR so far. |
Hi,
I have managed to get my sonoff s20 working with my led strip, but i'm not satisfied with the schemes and functionality. Specifically the rainbow on scheme 11. Is there a way to implement my own strings of code for more functionality?
I thought maybe i could edit the firmware.bin file but i am not a programmer so i didn't succeed. I saw tasmota was build with the neopixelbus library so maybe I can build further on that. Anyone who can help me?
The text was updated successfully, but these errors were encountered: