[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

Post Reply
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: Help with Yeelight Bulb

Post by weiweipossible »

corbin wrote:
weiweipossible wrote:Hi all,

I'm a developer from Yeelight and I'm so glad that many people here like Yeelight bulbs!
Good to see you here :)
:D Actually it's you who bring me here!
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 »

dear...
Looks the Yeelight is killing my Domoticz....
When i remove the light in my lan domoticz is crashing....
And it is turning in to a loop of crashes.

Yeelight hardware off, domoticz stable...
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 »

ok I will investigate further and hopefully get it stable.

its been running stable on my Linux VM and Windows, but just taking a guess there could be a memory leak that shows up faster on Raspberry Pi. (I'm very much a beginner with c++)
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

Take your time.
What you're doing is great, I'm sure we'll get there.

Thanks
domer
Posts: 7
Joined: Thursday 20 October 2016 7:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by domer »

Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Help with Yeelight Bulb

Post by deennoo »

Just a question who isn't clear for me :
Does e27 rgb bulb are able to provid warm white ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

deennoo wrote:Just a question who isn't clear for me :
Does e27 rgb bulb are able to provid warm white ?
When you get the goed setting yes..
RGBW all the colors you want
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 »

corbin wrote:ok I will investigate further and hopefully get it stable.

its been running stable on my Linux VM and Windows, but just taking a guess there could be a memory leak that shows up faster on Raspberry Pi. (I'm very much a beginner with c++)
Did you change something..
Now stable without a bulb in my lan
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 »

Nothing changed publicly as yet, But I have been testing on a Raspberry Pi image running in QEMU, seems stable but slow - don't know if that is normal with the VM or not.

Are you saying that when you have a Yeelight device added in Domoticz, but you then remove the physical bulb from your network, that it causes a problem?
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 »

domer wrote:Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
Not yet, but it will support the strip light in the future.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Help with Yeelight Bulb

Post by deennoo »

Ok thx will get one for lab office
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: Help with Yeelight Bulb

Post by weiweipossible »

domer wrote:Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
Are you talking about the old BLE light strip? No, it doesn't.
If you are talking about our new WiFi light strip, yes it is. We have already released the strip in Chinese market, I believe you will get the strip very soon through some channel.

Besides that, all Yeelight further WiFi product will support the same open API.
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 »

weiweipossible wrote:
domer wrote:Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
Are you talking about the old BLE light strip? No, it doesn't.
If you are talking about our new WiFi light strip, yes it is. We have already released the strip in Chinese market, I believe you will get the strip very soon through some channel.

Besides that, all Yeelight further WiFi product will support the same open API.
all Yeelight further WiFi product
Some idea what.. can i order this...??
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 »

corbin wrote:Nothing changed publicly as yet, But I have been testing on a Raspberry Pi image running in QEMU, seems stable but slow - don't know if that is normal with the VM or not.

Are you saying that when you have a Yeelight device added in Domoticz, but you then remove the physical bulb from your network, that it causes a problem?

Yes i added the hardware.[ on my CB2 [ like RPI ] ]
Test a bulb works oke.
Only when i remove the bulb in my lan, domoticz still crashing.
Yeelight hardware off, domoticz stable.
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 »

@ weiweipossible

Could you please make working Api ith a color, for a http action.
Like the hue script;

Code: Select all

curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 500,"hue": 13088,"sat": 212,"xy": [0.5128,0.4147],"ct": 467,"alert": "none","effect": "none","colormode": "xy","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/4/state
With this option the bulb is always 1 color..
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
domer
Posts: 7
Joined: Thursday 20 October 2016 7:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Help with Yeelight Bulb

Post by domer »

weiweipossible wrote:
domer wrote:Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
Are you talking about the old BLE light strip? No, it doesn't.
If you are talking about our new WiFi light strip, yes it is. We have already released the strip in Chinese market, I believe you will get the strip very soon through some channel.

Besides that, all Yeelight further WiFi product will support the same open API.
You really got me startled with your comment so I had to double check what I had ordered and it luckily was WiFi strip...atleast seller says so :lol:. Anyway thumps up for this!
corbin wrote:
domer wrote:Holy sh!t corbin&weiweipossible! Does this also work on Yeelight led strips?
Not yet, but it will support the strip light in the future.
Good to hear!
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: Help with Yeelight Bulb

Post by weiweipossible »

Derik wrote:@ weiweipossible

Could you please make working Api ith a color, for a http action.
Like the hue script;

Code: Select all

curl -H "Accept: application/json" -X PUT --data '{"on": true,"bri": 500,"hue": 13088,"sat": 212,"xy": [0.5128,0.4147],"ct": 467,"alert": "none","effect": "none","colormode": "xy","reachable": true}' http://192.168.5.36/api/newdeveloper/lights/4/state
With this option the bulb is always 1 color..
Sorry, I'm afraid we can't do that. We choose to implement the open API in a simple way (Restful API (what you asked for) is a bit heavier because you have to implement HTTP layer on top TCP. This is OK and suitable for a gateway or hub, but it's too heavy for a bulb).

Besides that, if we implement the same form of API, we may receive a letter from Philips' lawyer ... just like when we develop this bulb using the everyone-is-using PWM technique ...
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, can you put these commands in a bash script and then call from Domoticz? In a way it is better than using HTTP, and works in Linux.

sunrise (change IP address for bulb)

Code: Select all

echo -ne '{"id":1, "method":"start_cf", "params":[3,1,"50,1,16731392,1,360000,2,1700,10,540000,2,2700,100"]}\r\n' | nc -w1 192.168.5.14 55443
turn on and set to color (change 65280 to the color you want)

Code: Select all

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

mm
Did make a dummy for the scriptcommand
Changed your ip to my ip [ ido have the 5 range to :-) ]
Did make the file:
ScreenShot063.jpg
ScreenShot063.jpg (28.88 KiB) Viewed 2772 times
Dit put the script:
ScreenShot067.jpg
ScreenShot067.jpg (55.93 KiB) Viewed 2772 times
did make the xxx on the right place:
ScreenShot065.jpg
ScreenShot065.jpg (55.53 KiB) Viewed 2772 times
The light is working with his own switch correct..

Only when i push the dummy switch with the script there is no thing happening...
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
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 »

Does the script works in terminal? Maybe nc isn't installed
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest