[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post 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!
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: Help with Yeelight Bulb

Post by Mazzokun »

Hi, I'm going buying these bulbs... Any news for domoticz raspberry pi integration?
Thank you :)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post 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
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post 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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post 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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post 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
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post 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...!!!
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post 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.
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post 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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

I believe the beta versions at https://www.domoticz.com/downloads/ now have Yeelights included, thanks to https://github.com/gizmocuz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by TwoEasy »

Sweet!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post 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...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post 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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

Writing a guide for the Wiki https://www.domoticz.com/wiki/Yeelight
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post by Derik »

try on my pi and cb2...
Both the boards see the hardware only cannot add the hardware..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Help with Yeelight Bulb

Post by corbin »

Derik, I will get it working, I'm setting up a Raspberry Pi VM to test with.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Help with Yeelight Bulb

Post 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 ;) ;)
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post by woody4165 »

Hi corbin

just trying on cubieboard with Armbian Debian Linux 8 (Jessie) and it's working perfectly.
Great!!!!!
Last edited by woody4165 on Tuesday 18 October 2016 17:29, edited 2 times in total.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Help with Yeelight Bulb

Post by woody4165 »

Error
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
TwoEasy
Posts: 13
Joined: Friday 09 September 2016 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by TwoEasy »

How do I update to latest beta?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest