Page 3 of 18

Re: Help with Yeelight Bulb

Posted: Monday 10 October 2016 22:12
by corbin
endian must be the same on each processor, see viewtopic.php?f=6&t=7303#p57048

I am having to learn more about c++ so I can use threading properly, then will have Linux working and will be great to get tested on Rasperry

I only have the normal light bulbs to test, so doesn't work with the other kinds of lights right now. The strip light would be easy to integrate but i dont think it is value for money

Thanks!

Re: Help with Yeelight Bulb

Posted: Thursday 13 October 2016 11:54
by Mazzokun
Hi, I'm going buying these bulbs... Any news for domoticz raspberry pi integration?
Thank you :)

Re: Help with Yeelight Bulb

Posted: Thursday 13 October 2016 23:37
by corbin
Mazzokun wrote:Hi, I'm going buying these bulbs... Any news for domoticz raspberry pi integration?
Thank you :)
I've got it running on Linux, but not 100% working just yet

Re: Help with Yeelight Bulb

Posted: Friday 14 October 2016 15:36
by woody4165
Hi all

just got on of this bulb, but I haven't understood how to integrate it into domoticz, if possible.
I see corbin (thanks!) have realized a .cpp.
I'm actually running on a cubieboard with Linux, and a precompiled version (beta) of Domoticz.
What should I do to integrate it?
Is there a simple way?

Thanks

Re: Help with Yeelight Bulb

Posted: Saturday 15 October 2016 8:26
by corbin
woody4165 wrote:Hi all

just got on of this bulb, but I haven't understood how to integrate it into domoticz, if possible.
I see corbin (thanks!) have realized a .cpp.
I'm actually running on a cubieboard with Linux, and a precompiled version (beta) of Domoticz.
What should I do to integrate it?
Is there a simple way?

Thanks
For all you Linux/Raspberry Pi users, good news!

https://github.com/corbinmunce/domoticz - working in Ubuntu Linux on my test VM, which I hope means it will also work on a Raspberry Pi.

You will need to compile my code - I don't know if that is simple or not, let me know if you need help.

Re: Help with Yeelight Bulb

Posted: Saturday 15 October 2016 15:00
by Derik
corbin wrote:
woody4165 wrote:Hi all

just got on of this bulb, but I haven't understood how to integrate it into domoticz, if possible.
I see corbin (thanks!) have realized a .cpp.
I'm actually running on a cubieboard with Linux, and a precompiled version (beta) of Domoticz.
What should I do to integrate it?
Is there a simple way?

Thanks
For all you Linux/Raspberry Pi users, good news!

https://github.com/corbinmunce/domoticz - working in Ubuntu Linux on my test VM, which I hope means it will also work on a Raspberry Pi.

You will need to compile my code - I don't know if that is simple or not, let me know if you need help.
mm
Thanks..
Only why not build in in Domoticz???
Perhaps ask Gizmocus

Re: Help with Yeelight Bulb

Posted: Saturday 15 October 2016 16:14
by woody4165
thanks corbin

I'll wait for someone who can help on how to compile and integrate into domoticz, i'm not an expert...!!!

Re: Help with Yeelight Bulb

Posted: Saturday 15 October 2016 17:04
by TwoEasy
Oh, this looks very promising. Corbin, does discovery work and does it poll status? Very good work! I will do like others and wait since I dont know anything of compiling.

Re: Help with Yeelight Bulb

Posted: Saturday 15 October 2016 22:43
by corbin
TwoEasy wrote:Oh, this looks very promising. Corbin, does discovery work and does it poll status? Very good work! I will do like others and wait since I dont know anything of compiling.
Discovery of new devices works - detecting a colour or white bulb, and it polls every minute for light status. The polling time could be adjusted faster or slower if a different time would be better?

There are a couple of things in my code that I am unsure of, and am wanting to get it tested on other systems before it gets merged into the main Domoticz code.

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 11:49
by corbin
I believe the beta versions at https://www.domoticz.com/downloads/ now have Yeelights included, thanks to https://github.com/gizmocuz

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 11:57
by TwoEasy
Sweet!

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 12:08
by Derik
corbin wrote:I believe the beta versions at https://www.domoticz.com/downloads/ now have Yeelights included, thanks to https://github.com/gizmocuz
In the list of hardware.. :-)
Only when i add the hardware.. There is no thing happend...

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 12:17
by corbin
It may not work in Raspberry Pi yet, I have only been able to test on Windows and Ubuntu so far. Can anyone else try and let me know the result?

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 12:18
by corbin
Writing a guide for the Wiki https://www.domoticz.com/wiki/Yeelight

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 12:21
by Derik
try on my pi and cb2...
Both the boards see the hardware only cannot add the hardware..

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 12:32
by corbin
Derik, I will get it working, I'm setting up a Raspberry Pi VM to test with.

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 14:28
by Derik
corbin wrote:Derik, I will get it working, I'm setting up a Raspberry Pi VM to test with.
Let me know i will test ;) ;)

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 17:29
by woody4165
Hi corbin

just trying on cubieboard with Armbian Debian Linux 8 (Jessie) and it's working perfectly.
Great!!!!!

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 17:29
by woody4165
Error

Re: Help with Yeelight Bulb

Posted: Tuesday 18 October 2016 17:36
by TwoEasy
How do I update to latest beta?