[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

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 wrote: Only i do not understand the ssdp protocol? Working with putty?
Or how do i send the request.

some one understand this..?
Are you able to run a command like this?

Code: Select all

printf '{"id":1,"method":"toggle","params":[]}\r\n' > /dev/tcp/192.168.0.2/55443
change 192.168.0.2 to the IP address of your bulb. Also check that you have developer mode enabled on the bulb. The quotes may need escaping, I'd check myself but don't have a Linux install handy.
Corbin...
If you planed a hardware plugin... [ love that option..xxxx]
Only i do not understand the methode..
In my browser?
in putty?
Or in a linux [ and then? ]

Sorry for my dombo questions
Thanks
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
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 »

I found another temporary way to control the bulbs. Not the most effective or smoothest way to do it but it works..

I have a old Android tablet that I use as a on the wall dashboard, always connected to a charger and always at home, connected to wifi. I have tasker installed. So I made a virtual switch in domoticz that sends a on/off message via pushbullet that my Android tablet listen for and then runs the wanted command on the wanted bulb.

Like I said, dirty, not local but It works for now I think. (not actully tested yet)
farhanito
Posts: 34
Joined: Friday 19 August 2016 5:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by farhanito »

TwoEasy wrote:
Like I said, dirty, not local but It works for now I think. (not actully tested yet)
I you want local, i think this tasker plugin will work better
https://play.google.com/store/apps/deta ... .httpevent
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 wrote: Corbin...
If you planed a hardware plugin... [ love that option..xxxx]
Only i do not understand the methode..
In my browser?
in putty?
Or in a linux [ and then? ]

Sorry for my dombo questions
Thanks
try this from Linux command line (terminal)

Code: Select all

echo -ne '{"id":1,"method":"toggle","params":[]}\r\n' | nc -w1 192.168.5.19 55443
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 »

Any Windows Domoticz users want to test my Yeelight 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 »

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 »

Oh amazing Corbin! Really awesome! Unfortunately I use Raspberry pi so I cannot test it, I can happily test it if possible on pi
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 »

Looks there are people that have supported the yeelight in windows domoticz....
ScreenShot035.jpg
ScreenShot035.jpg (89.29 KiB) Viewed 2626 times
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
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 »

  • u
Derik wrote:Looks there are people that have supported the yeelight in windows domoticz....
ScreenShot035.jpg
Yeah, as you can see two posts up it is Corbin who created this.
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 »

TwoEasy wrote:
  • u
Derik wrote:Looks there are people that have supported the yeelight in windows domoticz....
ScreenShot035.jpg
Yeah, as you can see two posts up it is Corbin who created this.
O real? :D :D :D

Will try a linux version... [ have bulb]
Only i do not understand the way i should use:
ScreenShot036.jpg
ScreenShot036.jpg (6.88 KiB) Viewed 2624 times
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
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 »

Did install the last Windows Beta, on my NUC
ScreenShot037.jpg
ScreenShot037.jpg (102.37 KiB) Viewed 2598 times
No Yeelight?
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 wrote:Did install the last Windows Beta, on my NUC

No Yeelight?
Derik, try this link - compiled for Windows. https://1drv.ms/f/s!AiVyh7yRnMKPgT1s4nzWDgJX7UaO

The code on github probably isn't working right now - I am rewriting it to work in Linux.
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 wrote:Did install the last Windows Beta, on my NUC

No Yeelight?
Derik, try this link - compiled for Windows. https://1drv.ms/f/s!AiVyh7yRnMKPgT1s4nzWDgJX7UaO

The code on github probably isn't working right now - I am rewriting it to work in Linux.
Did install this version on my pc.
Ad the yeelight..
Only see no thing happend?
While my light is on and visible in my lan.
What do i need to do more?
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 »

Have you enabled development mode on your 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 »

corbin wrote:Have you enabled development mode on your Yeelight?
mmm

I do only have the bulb and a android app?
Is that ok?
Where can i find this mode?
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 »

Use the main Yeelight app, link on top right to settings
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 »

Yes the Android app is what I use, but the link to developer mode is only there in the main Yeelight app, it isn't in shortcuts to individual lights.
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 »

Got him :-)
ScreenShot040.jpg
ScreenShot040.jpg (83.21 KiB) Viewed 2555 times
Only have a other problem..
My X64 [ windows] nuc is not working as a slave for my master.. [ endium problem or something ]

Why not in Beta Windows?
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 wrote:Got him :-)
ScreenShot040.jpg

Only have a other problem..
My X64 [ windows] nuc is not working as a slave for my master.. [ endium problem or something ]

Why not in Beta Windows?
Awesome!

With Windows not working as a slave, yeah is to do with big/little endian - not going to work.

But, I almost have the Linux version working...
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:With Windows not working as a slave, yeah is to do with big/little endian - not going to work.

But, I almost have the Linux version working...
What is that for problem endian... [ when i run Domoticz on X86 is that better? ]

When you have linux let me now i test...[ when i have time ]

Are all Yeelights working?
Like the strips and the small bulbs?
http://www.ebay.com/itm/Original-Xiaomi ... SwHoFXs-G7


Great JOB!!!
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest