Xiaomi Yeelight RGBW E27

Ok…I am now testing the next version…I will try and investigate your issues. I plan to make Amazon dot work so will be trying that.

Can you replicate your problems? Perhaps post or send me the server log when it next occurs?

Lightstrip and ceiling lights are not supported. sorry!
I maybe adding the bedside lamp soon…
When you say ‘In discovering process sometimes smartthings app hangs and crashes.’ Do you have any more info? what were you doing? can you replicate? if you can, perhaps have ‘live logging’ running and send me the logs of the smartapp.

@Davec - I’ve finally gotten around to giving the OldNodeServer.js a go…I get the following screen returned which shows the IP address of the bulb:

I ran just ran node OldNodeServer.js and this was displayed. Do I need to edit the service file in order to run the service? I’ve tried discovering the device after running this command from the Yeelight Connect smartapp with no results. Just looking for some advice. Thanks

I edited the service file to run the OldNodeServer.js instead of server.js and the following was displayed once I tried to start the service and checked the status:

What is your node.js version installed? Looks like related my previous problem after installing the latest version of node I don’t have a single problem but I am using the server.js

When I see offline and press x and refresh button,
Looks like the device status is null?

The yeelight bulb

f5afbee9-ce77-49a6-ae8e-d251fbe45351 12:34:07 AM: debug generateEvent: Received Events name=bridgeIP value=192.168.1.64
f5afbee9-ce77-49a6-ae8e-d251fbe45351 12:34:07 AM: debug generateEvent: Received Events name=devIP value=192.168.1.118
f5afbee9-ce77-49a6-ae8e-d251fbe45351 12:34:07 AM: debug generateEvent: Received Events name=firmware value= 48
f5afbee9-ce77-49a6-ae8e-d251fbe45351 12:34:05 AM: debug sendToParent: uri=/refresh

Yeelight connect

Clear
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000359ffd0::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000359ffd0
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000359ffd0::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000359ffd0::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000359ffd0
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000359ffd0::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Setting Bridge ip and port 192.168.1.64:8082 ssdpUSN=YeeBridge 44dd61d0-5649-11e7-8770-450810c1a414::urn:schemas-upnp-org:device:YeeBridge:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/bridge, ssdpUSN:YeeBridge 44dd61d0-5649-11e7-8770-450810c1a414::urn:schemas-upnp-org:device:YeeBridge:1, ssdpTerm:urn:schemas-upnp-org:device:YeeBridge:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Setting Bridge ip and port 192.168.1.64:8082 ssdpUSN=YeeBridge 44dd61d0-5649-11e7-8770-450810c1a414::urn:schemas-upnp-org:device:YeeBridge:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/bridge, ssdpUSN:YeeBridge 44dd61d0-5649-11e7-8770-450810c1a414::urn:schemas-upnp-org:device:YeeBridge:1, ssdpTerm:urn:schemas-upnp-org:device:YeeBridge:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:17 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: child=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: ssdpUSN=0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: Bridge 192.168.1.64:8082light device=0x000000000332ab99
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpHandler: description=devicetype:04, mac:B827EB7F5B30, networkAddress:C0A80140, deviceAddress:1F92, stringCount:04, ssdpPath:/light, ssdpUSN:0x000000000332ab99::urn:schemas-upnp-org:device:YeeLight:1, ssdpTerm:urn:schemas-upnp-org:device:YeeLight:1, ssdpNTS:
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpDiscover: Discovering bridge IP
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpDiscover: lan discovery urn:schemas-upnp-org:device:YeeLight:1
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:35:16 AM: debug ssdpDiscover: Bridge IP=192.168.1.64:8082
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:34:07 AM: debug lightsHandler: method=get_props params=[flowing:0, sat:100, bright:80, hue:359, color_mode:2, name:null, power:on, music_on:0, rgb:16711680, flow_params:null, delayoff:0, ct:3200] value=null
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:34:05 AM: debug doThis: Sent command to bridge path=/HubAction/34CE00802271/refresh?transition=0&transitionspeed=1 responder=B827EB2A0E65
host=192.168.1.64:8082
daf92f33-457f-4c6c-952c-1a751cdb2cfa 12:34:05 AM: debug doThis: newuri=/HubAction/34CE00802271/refresh?transition=0&transitionspeed=1 name=Yeelight RGBW Light bridgeip=192.168.1.64:8082 command=/refresh?transition=0&transitionspeed=1 value=null bridge mac=B827EB2A0E65

Here if the version after typing node -v:

I am using node V8 you can use V6 which is the stable branch, I installed it manually to /usr/local/bin and changed the PATH variable

1 Like

Hi All,

Apologies for not responding to the above. As I mentioned a couple of weeks ago, I am working on V2 of this. Refactoring and cleaning up the code and adding mipow Playbulbs. I am within a week of completing (testing at the moment) and I don’t really have the time to investigate the bugs above, I will however address them in V2 when It is ready.

I have removed the need for MAC discovery in V2, this will make the code more portable and less fragile I hope.

I have also coded the basis for subscribing to events from the yeelight app (ie so the smart app will ‘know’ about yeelight app actions) note ‘coded’ does not mean working -:slight_smile:

I still have to gracefully handle device disconnects and IP changes…but that will be a lot easier now I have got the code in a better state.

Off topic a bit…I do suggest you check the Mipow bulbs from Aliexpress…the spheres are decent quality!!! also the candles are cheap and fun…

Hi Dave are you talking about these?

https://m.alibaba.com/product/60449287534/2016-MIPOW-Bedroom-PLAYBULB-Smart-Wireless.html?spm=a2706.7843299.1998817009.17.SflSDD

Looks like both are using Bluetooth so the Pi can connect them directly?

Yes I am…and yes the Pi 3 can …I will eventually try it on a Pi 2 with a bluetooth dongle…

The product is not expensive but the shipping cost is nearly same as the product itself to my location, too bad

Will you support the light strip and ceiling light?
When i set up a piston with core the lamp only give white lights and not the colour i entered in the piston, whats the problem?

mmm, do you really need the linuxserver to get the yeelights to work.?
I’ve installed the DH and set the light to developer mode. however ST wont detect the bulb.

Yes you really need the node server…

can that be ran from SThub or nas-server?

I think you can use Docker to run node on a NAS, yes.

I did try to run node.js on qnap NAS it mostly works but I did not install arp binary to test it properly may be you can try or you can use the newer version being prepared by @davec that don’t need the arp

Thanks for creating this, works really well.

I used to use Home Assistant and it allowed you to strobe the yeelights. Is this possible?

It’s a pretty good anti burglar feature as it messes up night vision.

Thanks!

Patiently waiting as I follow the thread my current install options are my windows htpc which is always on and my synology nas also always on , but from what I’ve read install may or may not work. Hoping V2 can fix this and also allow me to control strip lights. Thank you for your contribution yee light and smart things should be doing more so that we don’t have to go through all this. Post your donation info and I’ll gladly chip in for your next 6 pack to quench your thirst while you are designing V2