I’m going to link WS2812b LED to my alarm system. in case of alarm triggered I want the led to turn on the effect. those things no problem I can do it.
But I want that effect to be like this video (Police siren effect )
I’m having a weather station on top of my building over there I’m having some Ws2812b LED. I want that led to flash particular color every 10s. I want to create this into effect.
Please help me with the effects, I don’t know how to do it with Lambda
Are we talking about single LED or a LED strip or something?
I think you have to learn a little on how to write lambda effects for yourself. You can also consider using WLED instead of ESPHome it comes with lots of effects included and has a working Home Assistant integration. But you will lose a lot of the other ESPHome features (like sensors and so on).
It is possible to port most of WLEDs effects over to ESPHome. I did it for pacifica. You should be able to do it for the police effect, but well you have to know a little bit of C++.
If you want change the color of the single led or all leds of a strip at the same time you can use it without lambda and just use a normal automation/script or a interval/time thing.
I’m talking about LED Stripe …(115 pixel - Ws2812b )
Ya I know about WLED, I’m using this in some other place, it’s doing a great job. But in my situation, I have to connect a lot more sensors with this ESP so only have to go for ESPHOME.
I’m having 0 experience in C++ and other Languages… now only I started to understand about Home Assistant. so only I’m asking this in the community, experts like u can Help me.
I have checked the link you have attached. I find the “American Police Light with all LEDs Red and Blue” effect but, I don’t know how to make that work with ESPHome.
I have to learn a lot … I’m working on it.
In the weather station … yes we can do it in script/ automation
But that light is going to be on 24/7, For every second it has to send a signal to ESP from the Home assistant. if we make the Effect means it has to send only one signal to on and off
Sorry, I can help you if you have specific questions or are stuck trying to do write it yourself.
But: Writing the lambda effect for you will take me at least an hour or more. Sorry
In general: I think it would be great if the most important WLED effects would be integrated into ESPHome. Maybe a feature request can help to collect the missing effects (and will help to figure out of the maintainers are open to the idea). Maybe a few people could port one or two effects each. (I might be willing to port one).
@danielw sorry for replying to this necrothread but you mentioned in your reply that you had already ported the pacifica effect to ESPHome. Would you be willing to share that with me as it’s the last effect I need to move off MySensors to ESPHome. That would save me from having to trial an error convert it myself.