Could somebody explain howto install ? ( mini-manual )
The led-light plugin isn’t updated for 9 months.
-
Xiaomi Yeelight plugin
-
please use the 0.9 branch: https://github.com/philip1986/pimatic-led-light/tree/v0.9.x
installation hints: https://forum.pimatic.org/topic/1114/updated-how-to-install-a-plugin-from-github-using-npm-or-git
-
I allways get this error with two of my bulbs
error [pimatic]: Error loading device "yeelight-m1": Socket is already bound error [pimatic]: Error loading device "yeelight-c2": Socket is already bound
-
fyi I have published a new version which should solve at least some of the issues. Major improvements and additions are:
- added color control
- using the plugin with multiple bulbs should work now (I only have 1 bulb to test with)
- fixed editing and re-creating a device (device editor can be used now)
- re-connect on connection failure, e.g. when the bulb had been offline
It is still far for being perfect due the problem with the shortcomings of underlying base library. Note, the current implementation is working in passive mode as the underlying library does not support push notifications right now eventhough the Yeelight API provides for this.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig said in Xiaomi Yeelight plugin:
It is still far for being perfect due the problem with the shortcomings of underlying base library. Note, the current implementation is working in passive mode as the underlying library does not support push notifications right now eventhough the Yeelight API provides for this.
Is it possible to enable some debug output for this plugin? I have version 0.9.5 installed and my Yeelight simply does nothing. Would be interesting which commands are sent.
-
@NemoN said in Xiaomi Yeelight plugin:
Is it possible to enable some debug output for this plugin?
Yes, you can set the “debug” property as part of the plugin configuration.
Note, the plugin uses multicast (address 239.255.255.250). Is your Raspi connected via Wifi? Do you use Wifi Repeaters as part of your network? Make sure Wifi devices on your network are allowed to communicate directly to each other.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
For me it now works flawlessly, as far as I tested it. Allthough you mentioned its far from perfect.
Thanks for your great work!
-
@mwittig said in Xiaomi Yeelight plugin:
@NemoN said in Xiaomi Yeelight plugin:
Is it possible to enable some debug output for this plugin?
Yes, you can set the “debug” property as part of the plugin configuration.
Note, the plugin uses multicast (address 239.255.255.250). Is your Raspi connected via Wifi? Do you use Wifi Repeaters as part of your network? Make sure Wifi devices on your network are allowed to communicate directly to each other.
Got it working, i used the DNS name of the lamp in the device settings, this was not working. After replacing with lamp IP all is running fine!
-
@mwittig are you going to add some config var to disable color picker?
I use a yeelight white led bulb that does not support any color features.Anyway, thanks for that awesome work!
Edit:
As i currently only have one non-color bulb i quickly hide the color picker via css inpimatic-app/node_modules/pimatic-led-light/ui/led-light.css
.light-color-container{ padding-left: 15px; display: none; /* hides color picker */ }
and i moved the slider a little bit to the right, works for me in browser and iPhone:
.light-brightness-container { width: 40%; height: 30px; margin-left: 25px; /*moves slider a litte bit to the right */ }
how it looks now (iPhone)
no big deal, but will work for me until someone build it into config or shows me what i did wrong
-
Are you guys able to control your yeelight always? For me it is working some time and then I have to “restart” the bulbs by power them for some secs. of an on again.
Due to this I made a work around via a python script from git. This works always. But sooner or later I want to use a pimatic plugin solution. -
@ortin i also noticed the same behavior
pimatic-google-calendar | pimatic-wmi | pimatic-snmp | pimatic-wakeonlan |
Like my work? Then consider a donation
Follow me: www.thorstenreichelt.de -
Is anybody here who knows how to handle the connection problem of the plugin?
-
@ortin said in Xiaomi Yeelight plugin:
Are you guys able to control your yeelight always? For me it is working some time and then I have to “restart” the bulbs by power them for some secs. of an on again.
Due to this I made a work around via a python script from git. This works always. But sooner or later I want to use a pimatic plugin solution.Can you provide a link to the solution you are using? Does it work with the Yeelight Ceiling Lamps as well?