Today I finally made my yeelight to work with openhab. I spent all evenings this week to find where was the problem. In my case it was Windows 7, on wich runs openhab. It appears that windows has problems with multicast traffic when you have more than one NIC. I disabled all my NICs except the main one and now it works flowlessly. I also had to disable Oracle virtual box NIC to make yeelight work (virtual box NIC prevents multicast traffic). Maybe this information will help someone.
could you put the link to the repository for downloading the source code, please?
I’ve started with openhab and would like to set up a debug environment in Eclipse, but can’t find the source code of yeelight addon.
thanks for your last reply. I was wondering if there is any plan to release any update.
I’ve been testing this binding and sometimes it connects and other don’t. Not sure if I’m the only one with this issue, I was trying to install openhab in a raspberry pi, but I give up as only 10% of the times when openhab started, the lights were connected. So I keep with my server with windows, and this keeps happening more often now.
At the beginning I thought it was because the bulbs might change the IP, so I assigned fixed IPs to the bulbs, but now, I need to start like 10 times openhab until all my bulbs (3) are all connected.
I’ll put you the log when they showed up as disconnected, in case you can help me out:
Hello,
I managed to successfully install the yeelight binding and controlling my lamps works well with the paper ui and basic ui. I now want to create a rule that will turn on my yeelight color bulb and sent a spefic color value to that lamp. How will this command look like?
rule "ON"
when
Time cron "0 0 7 * * ?"
then
yeelight_scena.sendCommand("4")
end
rule "scena"
when
Item yeelight_scena received command
then
switch(yeelight_scena.state.toString) {
case "4":
{
l01_brightness.sendCommand(1)
l01_color.sendCommand("100,100,100")
l02_brightness.sendCommand(1)
l02_color.sendCommand("0,100,100")
l03_brightness.sendCommand(1)
l03_color.sendCommand("200,100,100")
}
}
end