@passie said in Xiaomi Yeelight plugin:
how-to control these lights from within Pimatic ?
I have implemented a driver for pimatic-led-light which I am going to publish next weekend.
Xiaomi Yeelight plugin
@passie said in Xiaomi Yeelight plugin:
how-to control these lights from within Pimatic ?
I have implemented a driver for pimatic-led-light which I am going to publish next weekend.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Hey,
Yeelight sounds very interesting. Are there any news on the pimatic side?
Greetings
Tobias
@mwittig said in Xiaomi Yeelight plugin:
I have implemented a driver for pimatic-led-light which I am going to publish next weekend.
What about the release now? I can’t wait to implement my Yeelights into pimatic
I’m sorry to say, that i didn’t had time for a native yeelight-plugin. Maybe this will change in a month or so. The Pimatic-led-light plugin with the yeelight integration from @mwittig works fine.
pimatic-google-calendar | pimatic-wmi | pimatic-snmp | pimatic-wakeonlan |
Like my work? Then consider a donation
Follow me: www.thorstenreichelt.de
@thost96 said in Xiaomi Yeelight plugin:
The Pimatic-led-light plugin with the yeelight integration from @mwittig works fine.
… which I have released today. There is an issue with recreation of the device thanks to shortcomings of underlying base library. Thus I do not recommend to use the device editor at this point until the issue has been resolved. Please create your device configuration “the old way” using the configuration editor.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Ah well, I just found it :D
But I got two problems!
I can easily use one of my Yeelight RGBs. I can switch it on and off, I can dim it, but I can’t change the color.
The second issue is with my two other bulbs (one mono, one color). Even when I create the devices manually via the configuration editor (the old way) they are not recognized.
"id": "yeelight-c1",
"class": "Yeelight",
"name": "Grosses Licht",
"addr": "192.168.0.102",
"echo": {}
},
{
"id": "yeelight-c2",
"class": "Yeelight",
"name": "Kleines Licht",
"addr": "192.168.0.104",
"echo": {}
},
{
"id": "yeelight-m1",
"class": "Yeelight",
"name": "Lampe Badezimmer",
"addr": "192.168.0.106",
"echo": {}
}
Could somebody explain howto install ? ( mini-manual )
The led-light plugin isn’t updated for 9 months.
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:
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 in pimatic-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?