Jump to content
alanchow

Chowmain - Yeelight Wifi RGBW LED Driver for Control4

Recommended Posts

Can I ask with the lightbulbs what are you guys using it for? Bedside table? Any other uses? As my home is all downlights.

Share this post


Link to post
Share on other sites

Can I ask with the lightbulbs what are you guys using it for? Bedside table? Any other uses? As my home is all downlights.
I am using one behind a piece of furniture to light it up. I plan to use another under my bed to use as a night light for nighttime bathroom trips

Sent from my Pixel C using Tapatalk

Share this post


Link to post
Share on other sites

Oh ok thanks. Just trying to figure out where to use them if I bought them as my whole house is installed with downlights....


Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites
14 hours ago, msgreenf said:

I am using one behind a piece of furniture to light it up. I plan to use another under my bed to use as a night light for nighttime bathroom trips

Sent from my Pixel C using Tapatalk
 

Have you got a pic for the one behind the furniture?

Share this post


Link to post
Share on other sites
It's just the led strip

Sent from my Pixel XL using Tapatalk



Oh ok


Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

OK got it sorted, can someone advise when you have it run an expression is there anyway you can get it to start multiple devices at once as they are all out of sync otherwise?

Share this post


Link to post
Share on other sites
2 hours ago, scuzzie2k said:

OK got it sorted, can someone advise when you have it run an expression is there anyway you can get it to start multiple devices at once as they are all out of sync otherwise?

Yeelights are individual IP devices.  We connect to each one and then we send each one a command.  There is no method for us to broadcast a command out to multiple Yeelights as thats just not the way the device is designed.

You may be able to program every single one to trigger on the same event and it may sync up but i can't guarantee it as it will be based on your controller speed and network latency.

Share this post


Link to post
Share on other sites

I think you can simulate async calls by setting the timeout on the socket to a low number. I am not certain. That could potentially be used to reduce delay.

Share this post


Link to post
Share on other sites
15 minutes ago, Pounce said:

I think you can simulate async calls by setting the timeout on the socket to a low number. I am not certain. That could potentially be used to reduce delay.

This is not relevant since you install seperate instances of the driver per light.

Share this post


Link to post
Share on other sites
Just now, alanchow said:

This is not relevant since you install seperate instances of the driver per light.

Maybe. But if you have 20 drivers reducing their execution time to perform an action can help performance overall. C4 isn't running all 20 in parallel with 20 threads. I'm guessing every ms counts.

Share this post


Link to post
Share on other sites
46 minutes ago, Pounce said:

Maybe. But if you have 20 drivers reducing their execution time to perform an action can help performance overall. C4 isn't running all 20 in parallel with 20 threads. I'm guessing every ms counts.

Considering that the Yeelight driver maintains a persistent connection to the light setting a timeout will not effect performance at all (in fact setting timeouts only effect when director gives up upon non connectivity.  If you're already connected it makes no difference - if you want to speed up drivers then its all based on optimisation of messaging and queues which we are pretty good at).

Share this post


Link to post
Share on other sites

Cool. With other systems if you use an async http call and do not wait for the response you can shave off some time returning. No idea how you have it working. So C4 can persist http connections to some large number? Is there a hard limit on total concurrent "sessions" you can reasonably expect to manage across all drivers?

Share this post


Link to post
Share on other sites
5 minutes ago, Pounce said:

Cool. With other systems if you use an async http call and do not wait for the response you can shave off some time returning. No idea how you have it working. So C4 can persist http connections to some large number? Is there a hard limit on total concurrent "sessions" you can reasonably expect to manage across all drivers?

Yeelight doesn't use HTTP for communications.  It is a direct socket connection.

In regards to general driverworks url functions yes you can set a timeout which is used for failures.  Having said that it is asynchronous so it doesn't really effect speed (unless you have some sort of queuing system that forces it to be synchronous).

Anyway this is really going off topic.  If you want to learn more about driverworks you should really post in the official control4 dealer forum under the driverworks section.

Share this post


Link to post
Share on other sites

Forgive me. Thanks. I see their music mode using set_music. Makes the lights listen to a port. Interesting. When not in this mode communication appears to be synchronous. 

Share this post


Link to post
Share on other sites

Ahhhh cant get my head around these expressions. the RGB Value how is worked out, say I wanted to flow to Red, the RGB for red is 255,0,0 how would I set that in the flow?

Share this post


Link to post
Share on other sites
10 minutes ago, scuzzie2k said:

Ahhhh cant get my head around these expressions. the RGB Value how is worked out, say I wanted to flow to Red, the RGB for red is 255,0,0 how would I set that in the flow?

Ignore worked it :) its a decimal integer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×