Page 4 of 18
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 17:37
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
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 17:40
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
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 19:39
by woody4165
Have you set on the lamp app developer mode?
Inviato da Tapatalk
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 21:36
by Derik
Works great....
- ScreenShot051.jpg (12.22 KiB) Viewed 3589 times
- ScreenShot050.jpg (30.39 KiB) Viewed 3589 times
Thanks
ALL..
Just order a strips and a other bulb to test....
Love you guys GREAT work...
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 21:56
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
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 22:02
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.. ]
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 22:31
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?
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 22:33
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
Re: Help with Yeelight Bulb
Posted: Tuesday 18 October 2016 23:22
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!
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 9:48
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 (49.66 KiB) Viewed 3533 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 (63.07 KiB) Viewed 3533 times
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 12:06
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?
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 12:12
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...
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 12:24
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
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 13:04
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.
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 13:35
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
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 13:42
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
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 14:00
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
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 14:02
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
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 15:58
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?
Re: Help with Yeelight Bulb
Posted: Wednesday 19 October 2016 16:03
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