Would anyone be up for creating a plugin for Yeelight bulbs ? they are cheap compared to Hue, ~?15
I have asked Vera Support and they have no interest in supporting them. :
There is an open API available using tcp connection, json commands / responses and a notification when status of bulb changes to update any connected devices.
There is also a python library on Github that I am successfully using in Eventghost to control the bulbs but Vera integration would be great so my RTI remote processor can control and have status updates from Vera.
Sadly I suspect it’s beyond my abilities as well but, as you noted, the API is out there and it doesn’t look overly complicated so I’ll have a look when I have a chance. I will note that I am impressed with the value (price & quality) of the Xiaomi products. I have a couple of RGB Yeelight strips and they work fine with my Google Home now, and am thinking about getting one of the desk lamps. I also recently got their robot vacuum and am very impressed with it - definitely equal or better than my Neato.
If it turns out I have neither the time nor ability to do it, if there’s enough interest for it in the community, maybe we can convince/pay someone via fiverr.com with LUA skills to work on something for us? .
I have added experimental support for the Yeelight bulbs to the WiFi/UDP Switch Controller plugin… HERE
Note: Availability of these bulbs in the great white north is sporadic, so I do NOT have any of these bulbs, so if you try the plugin and it does not work, you WILL need to provide excerpts of the LuaUPnP log in order to get it working.
Also, as support is experimental, you will need to force installation of the specific version using the instructions in post 3 of the WiFi/UDP thread.
I’ve made some changes, based on assumptions - your log excerpt is a little spare… The error indicated could only be generated if the ssdp search did not find any YEELIGHT devices… So I have tweaked the ssdp search algorithm to hopefully find some devices.
Attached is the update…
Upload the file to you vera from Apps/Develop apps/Luup files… Make sure “Restart Luup after upload” is checked.
Download BOTH files. rename J_ECO_Switch1.js.txt" to J_ECO_Switch1.js" and upload both files to your vera, allow the LuaUPnP engine to reload, then refresh your browser…
Device now is configurable and a dimmable light devices appears but it doesn’t control the Yeelight. The switch won’t switch to the ON position but the slider does slide, but no reaction from the Yeelight.