[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post by woody4165 »

Just check beta in the settings and then try to force update on command line or maybe reboot and verify if it comes the update to beta

Inviato da Tapatalk
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by TwoEasy »

woody4165 wrote:Just check beta in the settings and then try to force update on command line or maybe reboot and verify if it comes the update to beta

Inviato da Tapatalk

Thanks!


Edit: I can confirm that nothing happends when clicking ad hardware. No rush tho, Im happy that it is so close to be working :)
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post by woody4165 »

Have you set on the lamp app developer mode?

Inviato da Tapatalk
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

Works great....
ScreenShot051.jpg
ScreenShot051.jpg (12.22 KiB) Viewed 3590 times
ScreenShot050.jpg
ScreenShot050.jpg (30.39 KiB) Viewed 3590 times
Thanks
ALL..
Just order a strips and a other bulb to test....
Love you guys GREAT work...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by TwoEasy »

woody4165 wrote:Have you set on the lamp app developer mode?

Inviato da Tapatalk
Yep, bulbs are i n dev mode but it doesnt actully work to add the hardware Yeelight led in domoticz so it can find the bulbs
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

TwoEasy wrote:
woody4165 wrote:Have you set on the lamp app developer mode?

Inviato da Tapatalk
Yep, bulbs are i n dev mode but it doesnt actully work to add the hardware Yeelight led in domoticz so it can find the bulbs
What board are you using??
And the beta Version? [ last needed.. ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

Derik wrote:Works great....
ScreenShot051.jpg
ScreenShot050.jpg

Thanks
ALL..
Just order a strips and a other bulb to test....
Love you guys GREAT work...
Great!

Did you get it working on your pi also?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

Derik wrote:
TwoEasy wrote:
woody4165 wrote:Have you set on the lamp app developer mode?

Inviato da Tapatalk
Yep, bulbs are i n dev mode but it doesnt actully work to add the hardware Yeelight led in domoticz so it can find the bulbs
What board are you using??
And the beta Version? [ last needed.. ]
Yeah you don't have the latest beta or your web browser cache hasn't refreshed if you can't see Yeelight LED to choose under hardware
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by TwoEasy »

corbin wrote:
Derik wrote:
TwoEasy wrote:
Yep, bulbs are i n dev mode but it doesnt actully work to add the hardware Yeelight led in domoticz so it can find the bulbs
What board are you using??
And the beta Version? [ last needed.. ]
Yeah you don't have the latest beta or your web browser cache hasn't refreshed if you can't see Yeelight LED to choose under hardware
Beta version 3.5786

Raspberry pi 2

Can see the Yeelight hardware plugin but when I press add, the hardware plugin is not being added, nothing happends

Edit: Worked when I tried to use Microsoft Edge instead of Chrome!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

Now the next challenge.
The yeelight operate with a http script like the hue.

Code: Select all

#!/bin/sh
curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 168,"hue": 14135,"sat": 254,"xy": [0.5281,0.4302],"ct": 500,"alert": "none","effect": "none","colormode": "hs","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/8/state
curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 168,"hue": 14135,"sat": 254,"xy": [0.5281,0.4302],"ct": 500,"alert": "none","effect": "none","colormode": "hs","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/9/state
					
For 2 yellow lights

And:

Code: Select all

#!/bin/sh
curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 42,"hue": 45643,"sat": 252,"xy": [0.1849,0.0749],"ct": 500,"alert": "none","effect": "none","colormode": "xy","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/8/state
curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 42,"hue": 45643,"sat": 252,"xy": [0.1849,0.0749],"ct": 500,"alert": "none","effect": "none","colormode": "xy","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/9/state

					
For 2 white lights
And switching with a dummy:
ScreenShot059.jpg
ScreenShot059.jpg (49.66 KiB) Viewed 3534 times
The reason you can work with a standard color via a script, when the light turn on.
Now put you the light on in the previous setting, but the best option for me, if you turn the light on you can choose it to your desired color.

Then, someone now how the disco function works?
ScreenShot057.jpg
ScreenShot057.jpg (63.07 KiB) Viewed 3534 times
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

Hi Derek,
I've been adding in some of those missing functions tonight. With the disco mode, what would you like the color bulb to do for this function?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

corbin wrote:Hi Derek,
I've been adding in some of those missing functions tonight. With the disco mode, what would you like the color bulb to do for this function?

mwhaaa when you can fix that...
Disco go to different colors after x seconds and set the time fast and slow...
like:
https://www.youtube.com/watch?v=WjXzdmjPMhU

or all the things you can make...:-)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

making it play set patterns is ok, I just need some patterns!

You can try this from the terminal, works on Linux, not sure on Raspberry - you will need to change 192.168.5.14 to the IP of your bulb:

echo -ne '{"id":1,"method":"start_cf","params":[ 50, 0, "50, 2, 5000, 100, 50, 2, 5000, 1"]}\r\n' | nc -w1 192.168.5.14 55443
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
farhanito
Posts: 34
Joined: Friday 19 August 2016 5:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by farhanito »

I tried on my pi2, latest beta

I can see Yeelight in hardware setup. but as soon as I added it, I think it crashed the domoticz http server (went offline). Not sure why, I see nothing in the log.
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: Help with Yeelight Bulb

Post by weiweipossible »

Hi all,

I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
I saw some questions regarding the "Sunrise" and "Sunset", actually, it's just implemented using "start_cf" command. With this command, you can achieve almost any effect you want.

For example, set following command to bulb and you will see "sunrise" effect:

{"id":1, "method":"start_cf", "params":[3,1,"50,1,16731392,1,360000,2,1700,10,540000,2,2700,100"]}

Please refer to the inter-operation spec (page 12) for detailed explanation.

BTW, if your bulb is in OFF state, use "set_scene" command instead of "start_cf", which is to turn on the bulb firstly and then start color flow effect.

-Wilson
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

weiweipossible wrote:Hi all,

I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
I saw some questions regarding the "Sunrise" and "Sunset", actually, it's just implemented using "start_cf" command. With this command, you can achieve almost any effect you want.

For example, set following command to bulb and you will see "sunrise" effect:

{"id":1, "method":"start_cf", "params":[3,1,"50,1,16731392,1,360000,2,1700,10,540000,2,2700,100"]}

Please refer to the inter-operation spec (page 12) for detailed explanation.

BTW, if your bulb is in OFF state, use "set_scene" command instead of "start_cf", which is to turn on the bulb firstly and then start color flow effect.

-Wilson
mmm hello dear.. nice to have you here...
perhaps you can help with the pattern for a disco light like the HUE..
And a developer that can help us with the implement..??
Dou you perhaps have some bash scripts or something to use the bulbs like HUE
Last edited by Derik on Wednesday 19 October 2016 14:01, edited 1 time in total.
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

weiweipossible wrote:Hi all,

I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
Good to see you here :)
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

farhanito wrote:I tried on my pi2, latest beta

I can see Yeelight in hardware setup. but as soon as I added it, I think it crashed the domoticz http server (went offline). Not sure why, I see nothing in the log.
Try clearing your cache or using a browser that hasn't already been used for Domoticz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
farhanito
Posts: 34
Joined: Friday 19 August 2016 5:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by farhanito »

corbin wrote: Try clearing your cache or using a browser that hasn't already been used for Domoticz
Tried that, no difference.

Restarted domoticz, web service goes up. But after about a minute, it went offline again.
Restarted it again, immediately disabled Yeelight, and everything is normal.

I don't know, probably something in my setup.

Can you add some debugging messages in the log?
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: Help with Yeelight Bulb

Post by weiweipossible »

Hi Derik,

Nice to know you! About the disco mode, the bulb actually exposes an interface that can be used to do that. As I have once explained in Yeelight forum, the music to color transformation should be done by the control side, but unfortunately, I don't have that knowledge :) , but I do believe that there are already some algorithm can handle that. The basic idea is to map some frequency to color and map the volume to brightness.

-Wilson

"""
The differences between music mode and normal mode is that there is no command quota and no property change reported.
The set_music command is to enable the music mode, once received the command, the bulb will act as a TCP client to connect to the server specified in the parameter and from then on, the server can send any commands to the bulb. The music-to-light transformation part should be done by music server (normally use FFT).
Our android app just implements the music-to-light transformation algorithm and send the command to the bulb. User's android phone is acting as the music server.
Under music mode, the bulb acts as the client side because it's a bit easier for music server to play music to multiple bulbs at the same time.
"""
Derik wrote:
weiweipossible wrote:Hi all,

I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
I saw some questions regarding the "Sunrise" and "Sunset", actually, it's just implemented using "start_cf" command. With this command, you can achieve almost any effect you want.

For example, set following command to bulb and you will see "sunrise" effect:

{"id":1, "method":"start_cf", "params":[3,1,"50,1,16731392,1,360000,2,1700,10,540000,2,2700,100"]}

Please refer to the inter-operation spec (page 12) for detailed explanation.

BTW, if your bulb is in OFF state, use "set_scene" command instead of "start_cf", which is to turn on the bulb firstly and then start color flow effect.

-Wilson
mmm hello dear.. nice to have you here...
perhaps you can help with the pattern for a disco light like the HUE..
And a developer that can help us with the implement..??
Dou you perhaps have some bash scripts or something to use the bulbs like HUE
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest