[Plugin now available in Beta] Help with Yeelight Bulb

Moderator: leecollings

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 »

corbin wrote: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?
Hi, I only add in the tab 'hardware' the option 'Yeelight LED'. The bulb is already plugged-in the power socket and controlled by the Yeelight app. but within a minute Domoticz crashes. Domoticz will also not discover the buld, ore have the time to discover it because of the crashes.

I don’t use any scripts. I use some different hardware in Domoticz: AEON Zwave stick, RFXcom 868, RFXcom 433, Nest, Kodi control and Philips Hue.
I Also tested it with the Nest, Kodi and Hue disabled, but still the same problem.

In the package center by the Domoticz the last line in the log is:

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 84)

Version: 3.5844
Build Hash: dcae296-modified
Compile Date: 2016-11-01 09:22:36
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 »

Thanks ErikJ, that makes it quite obvious what the problem should be, and if so is already handled in my new code so it at least won't crash!
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 »

The latest beta should now be crash free.
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by farhanito »

corbin wrote:The latest beta should now be crash free.
i'm on V3.5862
can't even add the hardware. weird. :?
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 »

farhanito wrote:
corbin wrote:The latest beta should now be crash free.
i'm on V3.5862
can't even add the hardware. weird. :?
Your browser may have cached older files, a simple way around it is to use a browser or computer that hasn't accessed the older version of Domoticz.

EDIT: I'm having the same problem, can choose YeeLight LED from new hardware, but nothing happens when adding it.
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 »

Now I can add the lamps but in iOs Home app can't change color only luminosity
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

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

Post by woody4165 »

I can add as HW (after clearing cache in the broswer).
I can add the device, but the device is not been added. I get the success message "Light created...."
But I don't see in the device list.
Version: 3.5864
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
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.

Something is broken because if I don't have this homebridge-plugin homebridge works like a charm...
If I install, for some time it work but then something goes wrong and make home bridge in fail state... I wish this could be helpful

Code: Select all

homebridge.service - HomeBridge Service
   Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
   Active: failed (Result: exit-code) since Sat 2016-11-05 19:36:20 CET; 35min ago
  Process: 818 ExecStart=/usr/local/bin/homebridge (code=exited, status=1/FAILURE)
 Main PID: 818 (code=exited, status=1/FAILURE)

Nov 05 19:36:20 raspberrypi homebridge[818]: at .<anonymous> (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:187:16)
Nov 05 19:36:20 raspberrypi homebridge[818]: at Socket.g (events.js:286:16)
Nov 05 19:36:20 raspberrypi homebridge[818]: at emitNone (events.js:91:20)
Nov 05 19:36:20 raspberrypi homebridge[818]: at Socket.emit (events.js:185:7)
Nov 05 19:36:20 raspberrypi homebridge[818]: at startListening (dgram.js:121:10)
Nov 05 19:36:20 raspberrypi homebridge[818]: at dgram.js:228:7
Nov 05 19:36:20 raspberrypi homebridge[818]: at _combinedTickCallback (internal/process/next_tick.js:77:11)
Nov 05 19:36:20 raspberrypi homebridge[818]: at process._tickCallback (internal/process/next_tick.js:98:9)
Nov 05 19:36:20 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Nov 05 19:36:20 raspberrypi systemd[1]: Unit homebridge.service entered failed state.
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 »

corbin wrote:The latest beta should now be crash free.
Works perfect now, Thanks!!
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

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

Post by woody4165 »

Even after latest beta update, 3.5868, I'm still unable to add the light.

I can add as HW (after clearing cache in the browser).
The I add the device, with proper IP address and RGBW and I get a success message.

The device has not been added and I don't see it in the list

But I don't see in the device list.
Version: 3.5864

Lamp fw is 1.4.1_45

Can someone help me?

Thanks

PS: Maybe I have to clean the domoticz DB? In this case, what is the procedure?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

Mazzokun wrote:
Something is broken because if I don't have this homebridge-plugin homebridge works like a charm...
If I install, for some time it work but then something goes wrong and make home bridge in fail state... I wish this could be helpful
try posting in this thread - http://forum.yeelight.com/t/homebridge-plugin/83/34
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 »

ErikJ wrote: Works perfect now, Thanks!!
Thanks to Gizmocuz, he fixed up some of the 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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

woody4165 wrote:Even after latest beta update, 3.5868, I'm still unable to add the light.

I can add as HW (after clearing cache in the browser).
The I add the device, with proper IP address and RGBW and I get a success message.

The device has not been added and I don't see it in the list

But I don't see in the device list.
Version: 3.5864

Lamp fw is 1.4.1_45

Can someone help me?

Thanks

PS: Maybe I have to clean the domoticz DB? In this case, what is the procedure?
Yes it could well be the database as the way a Yeelight is stored is slightly different now. For Windows I use http://www.sqliteexpert.com/download.html to edit the database, and it is the DeviceStatus table that you can delete them from.

But, removing the Yeelight hardware and then adding again should clear out the devices as well.
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by woody4165 »

maybe I forgot that it's needed to allow new devices to be clicked in Settings.
I don't know why I thought was not necessary...
Thanks!!

One more thing is there a way to know the status of the lamp since I can turn on via domoticz and off via yeelight app ?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

It should be updating the status, but with up to 1 minute delay as it polls once a minute. Only for on/off and brightness.

There is an update coming that will update status the same way the Yeelight app does, so will be almost real time.
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by woody4165 »

Thanks @corbin!

Inviato da Tapatalk
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
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 »

new white bulb...
You make the install easier great work!!!

Only one thing, the option are not working?
Bright and night etc does not work...
ScreenShot116.jpg
ScreenShot116.jpg (27.48 KiB) Viewed 2377 times
Is there anybody that have the HUE and the different scenes functions working?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

Compile my fork on GitHub where I've added in brightness up/down etc
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by Derik »

corbin wrote:Compile my fork on GitHub where I've added in brightness up/down etc

thats a part i do not understand a (^*^)....

So if you wil tell me how that works.... [ love love ]

and is there the option to set the bulb in different modes?
1 mode just a light
1 mode disco
1 mode wakeup...
etc

Or do i need for that scrips?
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: [Plugin now available in Beta] Help with Yeelight Bulb

Post by corbin »

To compile my latest version, follow the instructions on the wiki at http://www.domoticz.com/wiki/Installing ... rom_Source

but you will need to change

Code: Select all

git clone https://github.com/domoticz/domoticz.git dev-domoticz
to

Code: Select all

git clone https://github.com/corbinmunce/domoticz.git dev-domoticz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest