[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

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

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Derik »

@ Farhanito


Your sript is working....Thanks..
on, off, toggle works oke!!!
Only i think with the b and ct i mis something or i do something wrong...

Can i command all the setting on this way for this bulb? disco wakeup etc..

Can i switch 2 light @ the same time [ orderd more ] when i put in the script multiple Ip?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Derik »

got the sunrise script working to..
Make a dummy mistake not chmod 777.. :oops: :oops: :oops:

And did a trick to start the light from the off position...

Code: Select all

echo -ne '{"id":1,"method":"set_scene", "params": ["color", 65280, 1]}\r\n' | nc -w1 192.168.5.30 55443
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.30 55443
Because replace the start_cf in stead of set_scene was not working

Now it is working great....


Are there more nice scripts... :?: :lol: :D
Orderd more bulbs ...

Milight for sale...
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Derik »

@ weiweipossible

Is there perhaps a extension option for the ledstrip..
I need 4M ledstrip...
Or can i extend with a neopixel or a regulair HUE, or a other rgbw strip or something else?

Please do you have a example for the script so the bulb are acting exactly like a hue
I see in the manual that this is possible.
Only i do not understand this option..

Are there new bulbs for Sale?
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
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by deennoo »

Just update my Domoticz on a Syno :

Code: Select all

Version: 3.5814
Build Hash: 9817a5e-modified
Compile Date: 2016-10-24 08:44:40
Yeelight arrive half : no way to set adresses. does domoticz will look by his self is there any yeelight at home ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

deennoo wrote:Just update my Domoticz on a Syno :

Yeelight arrive half : no way to set adresses. does domoticz will look by his self is there any yeelight at home ?
Are the Yeelights not getting added to Domoticz devices? There isn't any need to tell it IP addresses as it will use a UDP broadcast to discover devices.
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by deennoo »

Ok, bulb still not arrive, want to prepare.

UDP discover is fantastic but this make my domoticz unstable ! Especialy when it discover nothing...remove for now and wait for bulb.

Maybe it can be more easyer to set ip adresse (your will not be alone todo this).
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by weiweipossible »

Derik wrote:@ weiweipossible

Is there perhaps a extension option for the ledstrip..
I need 4M ledstrip...
Or can i extend with a neopixel or a regulair HUE, or a other rgbw strip or something else?

Please do you have a example for the script so the bulb are acting exactly like a hue
I see in the manual that this is possible.
Only i do not understand this option..

Are there new bulbs for Sale?
We are really sorry that the current LED strip can't be extended.
The 4M ledstrip is being developed and may be released next year.
Regarding bulbs, we only have two version, white and color.
ErikJ
Posts: 16
Joined: Saturday 13 June 2015 9:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by ErikJ »

Hi,

I have a Mi yeelight color wifi bulb.

When I activate ‘Yeelight Led’ Domoticz will crash after a minute. When I restart Domoticz in less a minute it will crash again. When I deactivate ‘Yeelight Led’ it is stable. It also didn’t find any lights at the devices tabs.

Any suggestions?

Synology
Version: 3.5814
Build Hash: 9817a5e-modified
Compile Date: 2016-10-24 08:44:40
RFXCOM 443, RFXCOM 868, Hue, Aon Zwave
Last edited by ErikJ on Friday 28 October 2016 16:18, edited 1 time in total.
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

I installed 2 rgbw bulb but i can't get warm light ( 2700-3000 kelvin) any help? :)
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by weiweipossible »

Mazzokun wrote:I installed 2 rgbw bulb but i can't get warm light ( 2700-3000 kelvin) any help? :)
Can you get this CT through Yeelight or MiHome app?
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

yes, something similar to warm and not yellow.. isn't there a code for warm light? 8-)
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

Hi, I have found this plugin for homebridge, It works like a charm and if I pull off dc power to the bulb domoticz doesn't crash... I wish this could help you with some code.. ;)

Code: Select all

https://github.com/vvpossible/homebridge_yeelight
weiweipossible
Posts: 10
Joined: Wednesday 19 October 2016 13:09
Target OS: Linux
Domoticz version:
Location: Qingdao, China
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by weiweipossible »

Mazzokun wrote:Hi, I have found this plugin for homebridge, It works like a charm and if I pull off dc power to the bulb domoticz doesn't crash... I wish this could help you with some code.. ;)

Code: Select all

https://github.com/vvpossible/homebridge_yeelight
I'm maintaining this plugin :D. Are you saying current domoticz with yeelight-plugin is not stable enough? Maybe I can take a look and provide some help.
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

weiweipossible wrote:
Mazzokun wrote:Hi, I have found this plugin for homebridge, It works like a charm and if I pull off dc power to the bulb domoticz doesn't crash... I wish this could help you with some code.. ;)

Code: Select all

https://github.com/vvpossible/homebridge_yeelight
I'm maintaining this plugin :D. Are you saying current domoticz with yeelight-plugin is not stable enough? Maybe I can take a look and provide some help.
Yes it's more stable, because if I use the domoticz integration and physically disconnect a bulb from ac power, domoticz goes immediately offline.. With the homebridge plugin there isn't this issue 8-) ... But I'd prefer control them from domoticz instead apple's automation system ( that is also bugged :cry: ) .
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

I've borrowed a Raspberry Pi B and installed the beta image, which has worked with the lights powered, and it is stable when the lights are unplugged. Using the wired network connection, then I added a USB WIFI adapter, and it is still stable. I have a USB keyboard, 4GB SD card, and HDMI monitor plugged in also.

Any suggestions on hardware or software changes I could do to replicate the crashing?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

corbin wrote:I've borrowed a Raspberry Pi B and installed the beta image, which has worked with the lights powered, and it is stable when the lights are unplugged. Using the wired network connection, then I added a USB WIFI adapter, and it is still stable. I have a USB keyboard, 4GB SD card, and HDMI monitor plugged in also.

Any suggestions on hardware or software changes I could do to replicate the crashing?
Pull off AC Power of a bulb, pull on AC Power and the bulb should power on, then try to change state of the bulb via domoticz.. sometimes the bulb work ok, but usually don't respond and then domoticz goes offline. ( tested with 3 bulbs 2 works after shutdown 1 doesn't respond )
I have a Raspberry Pi 3 :)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

Mazzokun wrote: Pull off AC Power of a bulb, pull on AC Power and the bulb should power on, then try to change state of the bulb via domoticz.. sometimes the bulb work ok, but usually don't respond and then domoticz goes offline. ( tested with 3 bulbs 2 works after shutdown 1 doesn't respond )
I have a Raspberry Pi 3 :)
Thanks for testing :)

This kind of problem will be fixed in a new update I've been working on.
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

I have a question for the people this is still crashing for, I just want to confirm something - Did you only add the Yeelight hardware and do nothing else in Domoticz? ie control the lights with scripts or try to turn the lights on/off from Domoticz GUI when they have been physically unplugged?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Mazzokun »

yes I have other hardware in domoticz and yes I control this hardware with some lua script.
For yeelight I tried to control them from Domoticz GUI when they have been physically unplugged
farhanito
Posts: 34
Joined: Friday 19 August 2016 5:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [Plugin now available in Beta] Help with Yeelight Bulb

Post by farhanito »

corbin wrote:I've borrowed a Raspberry Pi B and installed the beta image, which has worked with the lights powered, and it is stable when the lights are unplugged. Using the wired network connection, then I added a USB WIFI adapter, and it is still stable. I have a USB keyboard, 4GB SD card, and HDMI monitor plugged in also.

Any suggestions on hardware or software changes I could do to replicate the crashing?
The issue I'm having on my RPi2 is exactly the same as described by @ErikJ with Synology.
ErikJ wrote:Hi,

I have a Mi yeelight color wifi bulb.

When I activate ‘Yeelight Led’ Domoticz will crash after a minute. When I restart Domoticz in less a minute it will crash again. When I deactivate ‘Yeelight Led’ it is stable. It also didn’t find any lights at the devices tabs.

Any suggestions?

Synology
Version: 3.5814
Build Hash: 9817a5e-modified
Compile Date: 2016-10-24 08:44:40
RFXCOM 443, RFXCOM 868, Hue, Aon Zwave
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest