Page 8 of 18
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Tuesday 01 November 2016 13:34
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
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Tuesday 01 November 2016 20:43
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!
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Friday 04 November 2016 11:58
by corbin
The latest beta should now be crash free.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Friday 04 November 2016 18:00
by farhanito
corbin wrote:The latest beta should now be crash free.
i'm on V3.5862
can't even add the hardware. weird.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Friday 04 November 2016 20:57
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.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Saturday 05 November 2016 11:52
by Mazzokun
Now I can add the lamps but in iOs Home app can't change color only luminosity
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Saturday 05 November 2016 18:02
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
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Saturday 05 November 2016 20:15
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
. 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.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 8:22
by ErikJ
corbin wrote:The latest beta should now be crash free.
Works perfect now, Thanks!!
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 8:51
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?
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 11:10
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
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 11:11
by corbin
ErikJ wrote:
Works perfect now, Thanks!!
Thanks to Gizmocuz, he fixed up some of the code.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 11:14
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.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 11:34
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 ?
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 12:25
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.
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 13:51
by woody4165
Thanks @corbin!
Inviato da Tapatalk
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 18:21
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 (27.48 KiB) Viewed 2368 times
Is there anybody that have the HUE and the different scenes functions working?
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 20:48
by corbin
Compile my fork on GitHub where I've added in brightness up/down etc
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 20:51
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?
Re: [Plugin now available in Beta] Help with Yeelight Bulb
Posted: Monday 07 November 2016 21:30
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