[Plugin now available in Beta] Help with Yeelight Bulb
Moderator: leecollings
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Help with Yeelight Bulb
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
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
-
- Posts: 13
- Joined: Friday 09 September 2016 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with Yeelight Bulb
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
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Help with Yeelight Bulb
Have you set on the lamp app developer mode?
Inviato da Tapatalk
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
-
- 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
Works great....
ALL..
Just order a strips and a other bulb to test....
Love you guys GREAT work...
ThanksALL..
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
-
- Posts: 13
- Joined: Friday 09 September 2016 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with Yeelight Bulb
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 bulbswoody4165 wrote:Have you set on the lamp app developer mode?
Inviato da Tapatalk
-
- 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
What board are you using??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 bulbswoody4165 wrote:Have you set on the lamp app developer mode?
Inviato da Tapatalk
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
- 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
Great!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...
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)
- 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
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 hardwareDerik wrote:What board are you using??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 bulbswoody4165 wrote:Have you set on the lamp app developer mode?
Inviato da Tapatalk
And the beta Version? [ last needed.. ]
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 13
- Joined: Friday 09 September 2016 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with Yeelight Bulb
Beta version 3.5786corbin wrote: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 hardwareDerik wrote:What board are you using??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
And the beta Version? [ last needed.. ]
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!
-
- 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
Now the next challenge.
The yeelight operate with a http script like the hue.
For 2 yellow lights
And:
For 2 white lights
And switching with a dummy: 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?
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
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
And switching with a dummy: 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?
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
- 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
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?
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)
-
- 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
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
- 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
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
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)
-
- Posts: 34
- Joined: Friday 19 August 2016 5:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with Yeelight Bulb
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.
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.
-
- Posts: 10
- Joined: Wednesday 19 October 2016 13:09
- Target OS: Linux
- Domoticz version:
- Location: Qingdao, China
- Contact:
Re: Help with Yeelight Bulb
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
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
-
- 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
mmm hello dear.. nice to have you here...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
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
- 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
Good to see you hereweiweipossible wrote:Hi all,
I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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
Try clearing your cache or using a browser that hasn't already been used for Domoticzfarhanito 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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 34
- Joined: Friday 19 August 2016 5:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Help with Yeelight Bulb
Tried that, no difference.corbin wrote: Try clearing your cache or using a browser that hasn't already been used for Domoticz
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?
-
- Posts: 10
- Joined: Wednesday 19 October 2016 13:09
- Target OS: Linux
- Domoticz version:
- Location: Qingdao, China
- Contact:
Re: Help with Yeelight Bulb
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.
"""
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:mmm hello dear.. nice to have you here...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
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
Who is online
Users browsing this forum: No registered users and 0 guests