yashsingh1/xdaforums huggingface dataset:
[General Accessories] jordi.id96:
I tought about it, but I won't release de code for now. This was just a personal project, only for me to use, never expected it to became popular, so the code is not ideal and I don't want people to use it as a reference.

But I might release an API or something. I'm slowly taking care of the code, cleaning it up and refactoring. We'll see
[General Accessories] Kooneybert:
The movie mode is still too fast (not smooth), right?

Also, the picked color is strange. How do you calculate the color in movie mode?
[General Accessories] jordi.id96:
I reduced flickering a bit, but yes. I haven't really touched it, still trying to come up with a solution
[General Accessories] jordi.id96:
I use SlimDX to obtain the predominant color
[General Accessories] Kooneybert:
SlimDX seems to produce some weird values (or the interpretation of these values is the problem). Sometimes really small changes can significantly change the bulb's color. Sometimes the opposite: try enabling movie mode, open paint in fullscreen and change the background to black. It would make sense if the bulb went dark now, too...

I see 3 major points:

1. The calculation of the dominant color could be a problem. Not sure if this is a technical difference, but the average color would make more sense.

2. At this moment, the bulb will never change its brightness.

3. It's just too fast. Make it so that the color will change over time. Use my method, for example.

Again, I offer my help with improving the movie mode. My python script is working pretty good - besides some technical limits that your version does not seem to have. These 3 major points aren't a problem in my script. The way of smoothening I use could/should work perfectly in your program.
[General Accessories] csreades:
Firstly this program is what I was looking for so thanks!

I would really appreciate support for either timed events, or simpler, the ability to run a command through powershell?

e.g. (light on when PC turns on)
[General Accessories] jordi.id96:
Thanks again for your feedback.

1. Personally, I would prefer the dominant color, but I could add a toggle between dominant/average colors.

2. Auto-birghtness should work, at least it did while I was developing it. I'll take a look at it anyway.

3. I know, I'm trying to fine tune it. I'll try again your method.

Also, I have to fix the way the bulb behaves on black/gray colors. The bulb can't produce black light so I'll play with brightness in those cases.

Keep posting feedback, I appreciate it very much!
[General Accessories] jordi.id96:
Timed events are already in my to-do list (it's huge). I'll keep adding features, whenever I find time.

What I could do is adding an option to turn the bulbs on as soon as you start the program, so you could add it to Windows start up folder.
[General Accessories] csreades:
That sounds like a suitable temporary fix! I look forward to the next update!
[General Accessories] Mihaibv13:
That is a very nice app, is there a source code? I wanted to make a like SteelSeries gamesense app( that changes the lightstip color form green to red while you health bar decreases) for a long time with my yeelight lightstrip, but I had poor knowlage on wifi requests. I can do it now even if I don't have the source code, I can edit the Yeelight Toolbox memory, but it will be nice to have the source code. Thanks.
[General Accessories] jordi.id96:
Published 1.2.1 with some features requested by you, bug fixes and other improvements
[General Accessories] jordi.id96:
That's a cool idea, but as I explained in a previous post, I don't plan to release the source code for now.
[General Accessories] jordi.id96:
New version includes that option, give it a try!
[General Accessories] jordi.id96:
Just posted a new version that mitigates some problems. I haven't had time yet to implement your algorithm though, I'll try to include it in the next release.

So, now:

- Movie mode now picks the average color.

- If you have auto-brightness disabled, now black or gray tones will be translated to a lower brightness (auto-brightess enabled handled that well already), because the bulb can't produce black light. For the other colors, whatever brightness you adjust manually will be applied.

The challenge is that because of the Yeelight API implementation, I can't simply turn the bulb off when black is detected. When the bulb turns off, music mode (the command I use for movie mode) shuts down, so the bulb can't turn on again easily. At the moment, lowering the brightness to the minimum is the better solution.

I am already thinking of a solution that would allow me to turn the bulb off completely, but it will take time, and hopefully doesn't hurt performance or causes lag. It will need testing. For now, I just wanted to quickly release this method so you could enjoy movie mode a bit more.
[General Accessories] jordi.id96:
Also fixed that. Should work immediately now
[General Accessories] Zecuto:
The darkest states of the lamp are three pure main colors (rgb) at their lowest brightness, so with the averages darker than certain threshold the smallest color tinge will decide which one of the three main colors will be used, it will be much darker than white at it's minimum brightness.
[General Accessories] jordi.id96:
You are right, I'll consider that
[General Accessories] jordi.id96:
Published my tool on thirdparty.yeelight.com

Take a look at it!

https://thirdparty.yeelight.com/topics/236/yeelight-toolbox
[General Accessories] Mihaibv13:
I did the gamesense thing with yeelight and csgo HP. To pull the HP form the game I used a easy C# library named CSGSI (you can find it on git), that library can pull from csgo a lot of things you just need some imagination to play with the lightsrip :) for exemple you can track ammo, bomb planted and more. The issue that I experienced is a small delay of ~ 1 second, I think is the CSGSI because it dosen't use the game memory, it listen to a specific port for the game clients HTTP POST request. I made a video, take a look.

youtube.com/watch?v=Mrm9QhP7CZI
[General Accessories] jordi.id96:
That's pretty cool, I could add it in the future
[General Accessories] Kooneybert:
Oups, I indeed just forgot to enable auto-brightness.

But: you say that movie mode now picks the average color? Please explain this:

(screenshot1)

-> This screen will result in a light blue bulb.

(screenshot2)

-> This screen will result in a red bulb

(I used version 1.2.1)

Something else:

- Only the primary screen is used for the detection, right? Maybe implement an option to add/change the screens used for detection.

- One core of my CPU is at 100% all the time when running the movie mode. Since in my eyes, the dominant color isn't interesting at all (but instead the average color is!), here is my suggestion: calculate the average color of the screen only with ~5-10% of the resolution. Best case: add a slider to the GUI so the user can decide the resolution by himself. An option to control the FPS would be good there, too.

- In general, the movie mode could have many parameters. Please consider adding a seperated tab in the GUI just for the movie mode where you can activate and play around with it.
[General Accessories] jordi.id96:
Thanks for your suggesitions.

I just released 1.2.2 that fixes the weird color picking that you and some users reported. Please test it. Yes, now picks the correct average color.

- Yes, only the primary screen is used. I plan to let the user choose.

- Now it scans every 20 pixels, wich is a lot, I know. I also plan to add an option to change that for slower systems.

- Once I add those options and others I am planning, movie mode will have its own configuration window.

I also plan to let the user choose between average or dominant color picking.

Thanks for your feedback!
[General Accessories] TechManiac89:
Nice changes, thanks you!
[General Accessories] cultinium:
I cant see my bulbs anymore !

Still works fine with jeedom.
[General Accessories] Zecuto:
Update 1.4.2_0059 has come but I dunno where to see changes. Also when in movie mode, my lamps flicker a lot even on static image.

P.S. I've forgotten to turn off lte on my smartphone and blew money on mobile data. Imagine my feelings when I've gotten into 25 USD worth of debt so suddenly. That's why you can't have another lamp for now X_X
[General Accessories] sauhdo:
Is the any way I could find my device if I'm connected via Ethernet? It works fine from my laptop, but I need it for my desktop.
[General Accessories] Kooneybert:
Sorry to tell but you messed up somewhere:

In version 1.2.0, the colors in movie mode changed fluidly and without any flickering

Since 1.2.1 it's not that fluid anymore and also the bulb flickers.

In 1.2.2 these problems from 1.2.1 remain, but another issue is added to the list: if I want to move a window with movie mode turned on, this will happen with approx. 1-2 FPS.

Yes, please. This is not only interesting for slower systems. Even pretty fast machines can't afford to give away a complete core to the ambient lightning while running a modern game. And in my case, I just don't want my CPU to consume that much power while watching a movie. I am running on a good ol' Phenom II x6 1090t with 6x3.6ghz. This monster consumes about 130w when running the movie mode...
[General Accessories] jordi.id96:
Works via ethernet too, check if your pc has virtual network adapters, maybe they cause conflics
[General Accessories] jordi.id96:
I haven't changed anything related to flickering or smoothness in 1.2.1 and 1.2.2, I still haven't had time to take a look at your implementation.

The only thing that I changed in 1.2.2 was fixing the weird color picking. For some users, movie mode didn't scan the entire screen, now it does, that's why you notice lag when moving windows. I'll add a setting to change the percentage of the screen to be scanned.

Please be patient, just know that I don't have much time for this and I also have other ongoing projects. Keep posting feedback and suggesting cool ideas, features and fixes will keep coming
[General Accessories] Kooneybert:
I just compared all three version and every time I test, I get the same results. Version 1.2.0 isn't flickering, 1.2.1+ is.
[General Accessories] jordi.id96:
I'm not saying it doesn't happen, I just say that it could be related to something else because I haven't touched that. I'll look into it whenever I have time
[General Accessories] Stele88:
Hey jordi.id96!

First off, HUGE KUDOS for this project! I am desperately searching for a way to control my yeelights from Win10. I am pretty stunned, that there are not much more third party tools, so i am overwhelmed to finally find this project!

Sadly, i cant find my RGB bulb (my Desk Lamp seems not to be supported right now anyway). Firewall is disabled, and your tool is allowed anyway, plus LAN-Mode enabled. That cant be the problem.

You said in another post, that the problem might be virtual network adapters.

I do have some because of VMWare and my PIA VPN. I did disable them, but they still dont show up. Deinstall of VMWare and VPN is not an option sadly.

What can i do otherwise to fix it? Could you consider an option in your tool in a future release to select the network adapter?

Greetings and thanks!
[General Accessories] jordi.id96:
Sure! That's a good idea, I could add a setting to select the adapter
[General Accessories] Ganjax:
how connect it with my yeelight rgb? all in program is grey, refresh nothing do.
[General Accessories] Aerversair:
any chance for a music mode which reads the audio source's frequency and flash the lights according to the sound frequencies?
[General Accessories] IonuZ:
jordi.id96 , just found about this app , everything works ok till now but i can´t make Movie mode work on both lights on the same time , it´s working one or another , never both...

And also will be nice a Music mode...but better than de Yeelight android app version witch it has only red and green flashing chaotically :))))
[General Accessories] jordi.id96:
-Movie mode will work with multiple bulbs as soon as I implement bulb grouping.

-Music mode is coming too. Also, I am working on something cool related to it. It will be ready soon.

While I work on these other projects, Yeelight Toolbox won't be a priority though
[General Accessories] Aerversair:
If you could make your toolbox open source I could possibly try adding a draft music mode in, over the weekend :D

I have a rough idea on how to get the audio spectrum from the soundcard just that I've no clue how to get a hold of the yee light api plus other functions like network connections between the bulbs and the computer :crying:
[General Accessories] jordi.id96:
Sorry, I already explained why not

But if you want to experiment with it, take a look at the official documentation, sending commands is pretty easy
[General Accessories] Aerversair:
Do you have the link to the api? After reading the documentation I don't see a guide on how to actually get started. Like is there an api that will handle the networking of the bulbs or do I have to code that part (networking and light bulb lobby (where I get all the networked bulbs in the LAN)) and figure that out as well?
[General Accessories] Aerversair:
*Woops sorry I lagged and double post*
[General Accessories] Aerversair:
Hey Jordi,

IPAddress multicastaddress = IPAddress.Parse("239.255.255.250");

UdpClient udpclient = new UdpClient();

udpclient.JoinMulticastGroup(multicastaddress);

IPEndPoint remoteep = new IPEndPoint(multicastaddress, 1982);

string ssdpMessage = "M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1982\r\nMAN: "ssdp:discover"\r\nST: wifi_bulb";

byte[] buffer = Encoding.ASCII.GetBytes(ssdpMessage);

udpclient.Send(buffer, buffer.Length, remoteep);

IPEndPoint AnyEndPoint = new IPEndPoint(IPAddress.Any, 0);

while (true)

{

Byte[] data = udpclient.Receive(ref AnyEndPoint);

string strData = Encoding.ASCII.GetString(data);

Console.WriteLine(strData);

}

I've managed to get the search and detect the bulb, but have no idea how to store the bulb and control it?

Could you help me on this? I probably wanna store it in a List and then probably take each bulb from the list and change brightness. How do I go about doing this?

Based on the documentation:

1. Parses and validate the response message.

2. Identify the device, check if the device is already maintained in local storage by

searching local database by ID.

3. Display the status to user if necessary.

4. Follow the information in "LOCATION" header to establish a TCP connection with the

WiFi smart LED.

5. After the TCP connection is successfully established, send control message to control

the smart LED or monitor the status change of the device and display any change to user.

I've no idea how to do the above any help will be appreciated
[General Accessories] spyd4r:
any chance you can add in support for other device SDK's? Like Corsair Cue for example?
[General Accessories] nikosaek2121:
Jordi you did a really nice job

---------- Post added at 11:15 AM ---------- Previous post was at 11:03 AM ----------

Jordi you did a really nice job, but pleas as other suggest, movie mode is messed up in version 1.2.2 and flickers like crazy, the movie mode in version 1.2.0 is working way more perfectly and I cannot notice any flickering, pleas fix that problem and also add a group support inside the app, you have my respect Jordi, good luck and also thx for doing that.
[General Accessories] Kooneybert:
If you could make your toolbox open source I could possibly try enhancing the movie mode.
[General Accessories] spyd4r:
Everytime I turn my yeelight lightstrip off the toolbox pops up a diaglog about slimdx not being installed. everythough it is, and movie mode works fine.
[General Accessories] spyd4r:
btw, developers/linux guys..

there is a working python example on the yeelight developer page.

https://www.yeelight.com/zh_CN/developer

https://www.yeelight.com/download/developer/yeelight_demo_lan_ctrl_python.zip
[General Accessories] Deb0lish3r:
Thanks a lot for this app and continue your good work. Also eagerly waiting for the music mode but no rush take your time, Cheers :)
[General Accessories] mitlaendre:
Some problem

Hi! Your program is great, but I have some problem with more bulbs and the flickering... I can't start more movie mode than one at the same time. I rly want to set the bulbs to different locations at the monitor, so please fix it.
[General Accessories] myhrmans:
Source code

Is the source code somewhere? Really great app. Just bought a light-strip to go with it. I would love to help with the coding!

Edit: just read in previous comments that you don't wanna make it open-source. Sad, but hope to see an update soon! Keep the great work up.. anywhere you could donate a beer or similar?
[General Accessories] uN3xp3ct3d:
RGB Bulb + Movie mode + Winamp Visualizer while playing music = amazing.

Great work, hoping for native music mode support, but until then I think I found a pretty damn good alternative :D
[General Accessories] jordi.id96:
Thank you all for your patience. Sorry for the lack of updates, I'm really busy working and studying so I don't have enought time. I'm spending the little amount of free time I have creating other cool projects, some related to Yeelight products too. I think I left Yeelight Toolbox in a good state while I'm not actively developing it, right now it's not a priority, but I think it will be worth it when I can share those projects with you. I hope you can understand this and, don't worry, I'll continue improving Yeelight Toolbox soon, as well as adding new features that you requested.
[General Accessories] jordi.id96:
I'm not saying I'll never open source it, just not right now. I considered making an API or something though, but not right now, I have other priorities. Thanks for understanding.

Also, if you are willing to donate, I have a paypal address on my profile. Thank you so much! Actions like this and the nice comments I see around here keep me motivated
[General Accessories] jordi.id96:
I'm aware of that, I'm trying to fine trune it to eliminate flickering issues
[General Accessories] jordi.id96:
v1.2.3 published
[General Accessories] kingston951:
Awesome program!!!

I have an Idea that could be great.

What about a music mode, which will make the bulb goes like disco according the beats or whatever works, sounds really cool to me.
[General Accessories] jordi.id96:
I planned it, but I can't say when it will be implemented. Of course it would capture internal audio instead of recording the mic like the android app
[General Accessories] Diabl0570:
It would be great if you open-sourced it, I have lots of time and willing to improve your awesome program
[General Accessories] fafifi:
Great! Very fast :) + Idea of improvement

Very good idea, well done, good job.

I propose you two small improvements and a bug:

- Bug, on Yeelight E27 9W RGB LED, with movie mode, a lot of flickering of the bulb very unpleasant visually and not useful to setting the mood.

- Enhancement 1, The addition to the current interface of a minimalist interface to manage the brightness, on and off, and optional 2/3 color "favorite". This is to be able to change the light without opening a huge window in the middle of a movie.

- Enhancement 2, Adding a dark theme *. * See quick template ;)

[IMG="DarkTheme"]https://dl.fabienrcx.com/123.png[/IMG]

Here it is :) Thank you and good luck!
[General Accessories] crazywi112:
Please, could you add the breathing effect ?
[General Accessories] LordMCDonald:
Hello,

I am having trouble with the movie mode.. I installed the SlimDX End User Runtime but when I click on Start nothing happens and when I click on Stop, the Yeelight Toolbox just freezes and I have to close it through the Task Manager.

I am running the latest version (1.2.3) of the Yeelight Toolbox.

Thank you
[General Accessories] lawrnz:
Hi. I wanted to try this but when I open the application, it doesn't seem to detect my Yeelight. I'm using Yeelight Color Bulb/Win7 64-bit.

What do I have to do so that it can detect my bulb?
[General Accessories] fafifi:
Hi !

You have to activate the control on the local network.

From the application click on the bulb "Yeelight Color Blub" if it has not changed name, click on the arrow on the bottom right, and activate the control on the local network
[General Accessories] lawrnz:
I've done that but it still doesn't show in the Yeelight Toolbox. :(

Also tried switching to a different server other than the recommended one.
[General Accessories] fafifi:
I think the software uses telnet. In order for the software to detect the light bulb, it must be turned on (not just feed, it has to light up) if not impossible to detect.

To see if the problem comes from your infrastructure or software, I invite you to follow this:

Control Panel -> Uninstall a program -> (on the left) Enable or Disable Windows Features -> Enabled Telnet Client.

Then, in a command prompt (cmd) -> telnet [MENTION=8972752]ip[/MENTION] 55443 (ip = the ip of your bulb)-> If it is impossible to verify that your connection is on SAME wifi, the control mode on the local network on a reason that does not work ... But if it does not work, the software can not necessarily market.
[General Accessories] lawrnz:
I did this just now but light bulb still doesn't come up when I open the Yeelight Toolbox. Telnet Client was unchecked so I checked it to enable it then proceeded to cmd. I typed "telnet(space)yeelight ip address(space)55443. When I pressed cmd just goes black/blank.

I also tried to enable Telnet Server to see if it works but still nothing.

In addition, I'm sure my Yeelight is connected to the same Wi-Fi network since I am able to control it using the Yeelight App on my phone which is connected to the same Wi-Fi network.
[General Accessories] fafifi:
Tried once connect in telnet to paste this:

{ "Id": 0, "method": "set_power", "params": ["off"]}

your bulb should be extinguished
[General Accessories] lawrnz:
I still can't connect to telnet. After i enter "telnet 192.168.1.x 55443", cmd screen only goes black.

How can I check that my laptop and yeelight bulb are connected to the same network? As I'm pretty sure it is since I'm on the same Wifi network.

It's really sad that I'm just a noob on this but I eagerly want to ty it. :crying:

Wireless network is on WPA2-Personal not WPA. Will that also be a probable cause?

UPDATE: So after I typed telnet 192.168.1.X 55443 then hit enter, screen goes blank. I copy-pasted { "Id": 0, "method": "set_power", "params": ["off"]} then the light goes off. So I assume it has already been connected to telnet. But I still can't see the bulb in the Toolbox even after I refreshed it. Closed and opened the app several times but nothing's showing up.
[General Accessories] jordi.id96:
Hey! Check out my new app, an improved music mode for android that captures internal audio instead of recording from the microphone.

Download it from Google Play: https://play.google.com/store/apps/details?id=com.jordigordillo.yeelightmusic

More details here: https://thirdparty.yeelight.com/topics/239/music-mode-for-yeelight

I know I haven't updated Yeelight Toolbox much while working on this, but development will be resumed. Thanks for your patience!