Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New BLE Mesh devices support #29

Open
pcmester opened this issue Mar 25, 2019 · 14 comments
Open

New BLE Mesh devices support #29

pcmester opened this issue Mar 25, 2019 · 14 comments

Comments

@pcmester
Copy link

On CES 2019, Xiaomi announced a new line of Yeelight devices, the Yeelight Mesh. Theese lamps works with BLE, and currently there is no API for control the Mesh devices.
The Yeelight Mesh devices are:
YLDP10YL
YLDP09YL
YLSD01YL
YLSD04YL

@germanotero
Copy link

I have a bunch of the YLSd01yl (downlights) and I'm trying to get to handle them with no success... I don't have the knowledge about BLE to do this.. I was able to connect with gatttool, but cant handle anything from there...

@rytilahti
Copy link
Owner

PRs are welcome, the best way to figure out how to communicate with these devices is to use the official app and reverse engineer what is happening. If you want to do that, http://nilhcem.com/iot/reverse-engineering-simple-bluetooth-devices (and maybe https://www.instructables.com/id/Reverse-Engineering-Smart-Bluetooth-Low-Energy-Dev/) is a good starting point.

@pcmester
Copy link
Author

I would like to buy from theese bulbs and do the reverse engineering, but the problem is, that we can not capture the packets, because the light is not directly controlled by the phone, there is a BLE gateway between them. In this case, this is the Xiaoi AI speaker, or the Xiaomi Smart Clock.

@germanotero
Copy link

germanotero commented Jun 20, 2019

yeah, I bought the clock and also have the spots, but the thing is that they are unusable even with the clock... they are slow AF, and I don't think the issue is the lamp... On the other hand, the lamp is pretty easy to hack, so I might hack it and change it to a mysensors node instead of dealing with this chinesse BS...

@pcmester
Copy link
Author

Could you sniff the BLE traffic? And about the smart clock, can it be controlled by python-miio?

@rytilahti
Copy link
Owner

I assume the clock also has to initialize a connection to the bulbs (without knowing how the mesh system works), which can take some time.. I have never looked deeper into how fast BLE communication can be done, but my anecdotal evidence is that there's always some delay.

The smart clock is not currently supported (see rytilahti/python-miio#505), but I have access to one so I will try to figure out how it works at some point.

@rezmus
Copy link

rezmus commented Jul 20, 2019

there will be soon new gateway from yeelight to control mesh lights.

https://homekitnews.com/wp-content/uploads/2019/06/yeelight-BT-gateway.jpg

@nickolik
Copy link

nickolik commented Jul 23, 2019

These lamps can be connected via gateways:

  • Mi AI Alarm Clock
  • Mi Smart Air Detector
  • Yeelight Voice Assistant

I have Mi AI Alarm Clock and Mi Smart Air Detector.
If you set the lamp to turn on in the hub on the event (click button). This script works only when the gateway is connected to the Internet.
So to control the lamps you always need access to the Internet. I really hope that the new yeelight BT gateway will work autonomously.

@illxi
Copy link

illxi commented Sep 12, 2019

there will be soon new gateway from yeelight to control mesh lights.

https://homekitnews.com/wp-content/uploads/2019/06/yeelight-BT-gateway.jpg

I am looking forward for the BLE Mesh support

@primebit
Copy link

Hello! Any news on this topic?

@rytilahti
Copy link
Owner

Not that I know of at least, this project is more or less dormant from my side at least, but I haven't heard anyone else working on those devices either.

@Zuz666
Copy link

Zuz666 commented Oct 21, 2020

but I haven't heard anyone else working on those devices either.

Now it works via: https://github.com/AlexxIT/XiaomiGateway3/

@TheOnlyBeardedBeast
Copy link

I still cant work with the device YLDP001-A (RGBW) any info about this one?

@rezmus
Copy link

rezmus commented Jun 18, 2021

YLDP001-A does not have mijia integration, it connects to GH directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants