I have a rgb light in my sons room for decoration. He recently got a new bed also with rgb light, but a realy stupid controller (had some strange buttons directly on the cable, so you had to get it from under the bed…). I changed that controller for a second rgb light ESPHome.
The first light has a random effect, which looks realy nice in the evening.
effects:
- lambda:
name: "Random"
update_interval: 15.0s
lambda: |-
// Generate a random color
float r = random_float();
float g = random_float();
float b = random_float();
// Make sure colors are vibrant but not blinding
float intensity_limit = 0.9;
r = std::min(r, intensity_limit);
g = std::min(g, intensity_limit);
b = std::min(b, intensity_limit);
// Create a call to set the color
auto call = id(led2).turn_on();
//call.set_rgb(r, g, b);
call.set_rgbw(r, g, b, 0);
call.set_transition_length(5000);
call.perform();
Now my son naturally asked if it is possible to sync those two lights together. So can I controll the other esphome nodes light from the first one?
Sync is probably hard since it’s random and there is a time delay between the two.
You could try and expose the rgb values to the other device and see what happens.
Perhaps a small delay on the master device can make them sync.
Nice that you solved it.
Reading documentation would be way better approach though.
After some months your code breaks, because you used some outdated syntax from AI…
You really should be reading through and using the documentation instead of having AI write a bunch of code that you dont understand and wont understand how to fix it if and when it breaks, plus the Esphome Light platform already has several included light effects to choose from and intuitively use like this “Random” effect right here for example and could have simply been used without needing AI to unnecessarily make a new one for you…
I programmed the random effect before for some reason I don’t remember exactly. Maybe the standard random always included the white channel? The problem was that I could not find a solution on how to send this value to another entity
No one could establish any specific and useful information regarding the second light/entity and/or whether it was also using Esphome or it had some other firmware that’s also supported. It wasnt even clear whether these were 2 completely separate lights or if they were 2 separate lights but wired to a common esp board, etc. All of these details matter a lot whenever someone is trying to help you and the answer will depend on the wiring and the firmware. Its also important to specify the type of light usually. Its extremely helpful if you provide product links or post pictures taken with your phone because it all matters and its all important if you want the most accurate help.
This is just an FYI but if you’d like to receive the quickest and most accurate support/replies to any future posts then try and post as much details as possible and please don’t assume we only need the information that you think is the only relevant details people need and so thats all you’re going to share in your post. Thats extremely aggravating for a lot of people and a lot of people won’t even bother trying to help because they dont want to have to ask 10 additional questions to gain the required information/details because they should always be included and if you don’t know if certain details are relevant then play it safe and provide it anyways and the people trying to help to help you, they will decide if it’s relevant or not and like a wise man once said, “Its better to have it and not need it than need it and not have it!”
All im really trying to say is, help us be able to help you the best we can and as quickly as we can! Now we will need you to post your home address, banking information, and online passwords here… ; ) jk dude, have a good one!
The topic is actually “Sync 2 lights on different nodes” and IDK, maybe you’re fairly new here but, if you haven’t learned not to just assume that you and what someone else said are on the same page then you will quickly because people are routinely using wrong nouns or might even be in the wrong forum completely so, if its not 100% clear then you should always try to make it that way and its the reason i try confirming so that im not giving you absolutely wrong or potentially dangerous or destructive answers/advice based on my assumptions that im certain is what your post means…
Well, im trying to tell you that it wssnt clear or even remotely clear regarding your details and don’t you dare try insulting my intelligence because i gradumitated the 8th grade and my advanced edumication came from Homeschooling at Uncle lazy eye Larry’s house and i know some stuff!!
Yes, assuming people didn’t frequently call most color changing lights (RGB lights) instead of accurately using things like addressable lights, WRGB, CWWW RGB lights and etc. They’re commonly called RGB just like everyone commonly uses an “Esp32 board” which is a perfect example of what im talking about.
Hey bud, im just trying to give you tips that will greatly benefit you with future posts you make so that you eliminate or significantly reduce any confusion or even give people opportunities to assume what you meant and results in wasting a bunch of your time/energy. If you dont want my help then ill take my toys and go play at someone else’s house who wants to play Ninja Turtles with me! ; )
Hey Jimmy, I see a few post of you here now.
While your intention might be good, your style is condescending.
You can easily look up how long hellis81 is around here.
I did as well, and you’re here only 2 weeks…
Welcome btw, and try to blend in with the group here. It helps.
Well, that’s what is called an “opinion” and seeing how neither myself or anyone else asked for your opinion on it, it’s meaningless and especially when your comment doesnt include any substance related to the OP here and your sole reason for commenting to my post and dragging me here just to give you a congratulations because you’ve thoroughly sold me on your performance of Karen!!
Let me just remove any confusion regarding what my intentionis are because its obviously to be of help to others! What my intentions do not include are stressing over each word i choose in my sentences because someone might read it and feel offended! If your not mature enough to control your emotions by by not getting offended from WORDS than maybe you shouldn’t read them or especially don’t respond to them because you think you’re feelings are so much more important and gives you justification to whip your purse out and get sassy up in here!
If you admittedly cant tell if the way i speak is just how how i always speak or if im breaking all norms and being condescending then maybe you’re intention should have been to just keep quiet and not speculate on something so ridiculous and risk getting a piece of my mind!
You and many others need to learn how to socialize with people who arent so weak and actively seek out offense from a comment that had nothing to do with you! You’re choosing to be all up in your feelings and weak, its a choice. Try making a different choice next time choose strength and maturity because there’s already too many weak men around and as the saying goes! Weak men lead to hard times and hard times create strong men. Lets help that cultural shift to happen sooner than later and starting with you!