Skip to content
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

[Feature Request] Support for Yeelight devices #3

Open
slicciardello opened this issue May 21, 2020 · 24 comments
Open

[Feature Request] Support for Yeelight devices #3

slicciardello opened this issue May 21, 2020 · 24 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@slicciardello
Copy link

I use several Yeelight devices, they are widely used devices. The proprietary application does not seem very privacy-friendly... It would be really great if they were supported by this application!

There are several repos available on github, maybe some can be useful
https://github.com/topics/yeelight

@slicciardello slicciardello added the enhancement New feature or request label May 21, 2020
@Domi04151309
Copy link
Owner

I found a python script that looks very promising and a Java API that could be useful. The Java API is pretty old but it should be possible to rewrite or implement it.

@Domi04151309
Copy link
Owner

Also, a detailed specification can be found on the Yeelight website.

@slicciardello
Copy link
Author

I found a python script that looks very promising and a Java API that could be useful. The Java API is pretty old but it should be possible to rewrite or implement it.

Nice, I can try if they work if you can implement them into the application. When you have test builds tell me and I'll try them right away.

My devices where I can test are:
Mi Led Desk Lamp
Yeelight LED Ceiling Light
If there's something I need to do by code, tell me what to do step by step, I'm still not very good at it.

@Domi04151309
Copy link
Owner

I have implemented some basic functionality now and would need you to test it. Do you know how to build the application from source using Android Studio?

@slicciardello
Copy link
Author

I have implemented some basic functionality now and would need you to test it. Do you know how to build the application from source using Android Studio?

I've never tried, if you show me a guide on how to do it I can try. I use linux

@Domi04151309
Copy link
Owner

Long Version

First, you have to install Android Studio and download the source from the yeelight branch. After you have done that you should be able to open the project using Android Studio. There you have to select your device in the top bar and allow debugging from this computer if you haven't done already. Then you can click the "Run" button (green play button) and it should build and install the app.

Short Version

  • Install Android Studio
  • Clone the yeelight branch
  • Open the project in Android Studio
  • Connect your device and allow debugging
  • Build and install the app

Things That Should Work

  • On/Off buttons
  • Changing properties after releasing the sliders

@slicciardello
Copy link
Author

Long Version

First, you have to install Android Studio and download the source from the yeelight branch. After you have done that you should be able to open the project using Android Studio. There you have to select your device in the top bar and allow debugging from this computer if you haven't done already. Then you can click the "Run" button (green play button) and it should build and install the app.

Short Version

* Install Android Studio

* Clone the yeelight branch

* Open the project in Android Studio

* Connect your device and allow debugging

* Build and install the app

Things That Should Work

* On/Off buttons

* Changing properties after releasing the sliders

Thanks i will try soon

@slicciardello
Copy link
Author

Long Version

First, you have to install Android Studio and download the source from the yeelight branch. After you have done that you should be able to open the project using Android Studio. There you have to select your device in the top bar and allow debugging from this computer if you haven't done already. Then you can click the "Run" button (green play button) and it should build and install the app.

Short Version

* Install Android Studio

* Clone the yeelight branch

* Open the project in Android Studio

* Connect your device and allow debugging

* Build and install the app

Things That Should Work

* On/Off buttons

* Changing properties after releasing the sliders

image

@slicciardello
Copy link
Author

@Domi04151309
Copy link
Owner

Domi04151309 commented Jun 4, 2020

Have you tried pressing the buttons and using the sliders?

@Domi04151309 Domi04151309 added feedback This issue is still open for feedback help wanted Extra attention is needed labels Jun 4, 2020
@slicciardello
Copy link
Author

Have you tried pressing the buttons and using the sliders?

yes, they didn't work. It is a connection problem. I must unistall yeelight application first?

@Domi04151309
Copy link
Owner

No I think you have to enable a setting in the yeelight app.

@slicciardello
Copy link
Author

No I think you have to enable a setting in the yeelight app.

No setting to enable.. Maybe i need to reset lamp, pressing is reset button?

@Domi04151309
Copy link
Owner

Maybe the library doesn't work or is misconfigured

@slicciardello
Copy link
Author

Maybe the library doesn't work or is misconfigured

Pressing reset button address change?

@Domi04151309
Copy link
Owner

Oops accidentally closed the issue.

No I think that the implementation isn't correct.

@slicciardello
Copy link
Author

image

It asked me to enable location and bluetooth for paring after resetting the lamp. I think that your implementation is correct for some bulb, but not for newer desk lamp and other. I will try my ceiling when i can mount hit.

@slicciardello
Copy link
Author

image

It asked me to enable location and bluetooth for paring after resetting the lamp. I think that your implementation is correct for some bulb, but not for newer desk lamp and other. I will try my ceiling when i can mount hit.

Maybe it need mac adress and not ip adress?

@Domi04151309
Copy link
Owner

It needs the IP address

@slicciardello
Copy link
Author

It needs the IP address

Ok, let me know when there's any news

@Domi04151309 Domi04151309 removed the feedback This issue is still open for feedback label Nov 22, 2021
@trmendes
Copy link

trmendes commented Oct 5, 2022

I'm trying this branch but it does not connect to the device.

@Domi04151309
Copy link
Owner

That's because the implementation is incorrect. It doesn't work yet.

@trmendes
Copy link

trmendes commented Oct 5, 2022

I see.
Thanks.
Please let me know in case you need any help with testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants