-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Encryption key Yeelight remotes (YLYK01YL) and dimmers (YLKG07YL and YLKG08YL) #353
Comments
Do you know how to get the encryption key without ceiling light ? I do not have any BT Xiaomi gateway and I can't connect to the dimmer directly |
Did you try method 6 in the FAQ? |
I succeeded to retrieve the
|
@Ernst79 Do you think you can automate the recovery or do I have to write a script? |
Well done. I think for now, it's the easiest to make a little script and a short explanation how to use it, I guess. I can put is somewhere here in the BLE monitor repo if you want and add the explanation in the FAQ. Just post it here and I will take care of it (or make a PR). Perhaps later I can look into automating it, but that won't be shortly (as BLE monitor isn't designed to connect to anything, it just listens passively (by design 😄). |
It would be nice to add it to this repo. Source: https://github.com/rexbut/mikettle/blob/master/get_beacon_key.py I tested with "YLKG08YL"
|
The script works with "YLYK01YL" by setting
|
Thanks. I’ll add instructions in FAQ, will use this as the preferred solution for legacy encryption. |
@rexbut nice! you can add pid to cmd line params after mac. btw: this method (maybe with small adjustments per pid) can be probably used to auth/read key from any mijia ble device. |
I just updated the script to take the |
Can anyone verify that the script works with |
@rexbut trying it now. Will post here the result |
@rexbut
|
@Ernst79 I`m not using Home Assistant, but custom scripts for my home automation. Is there a simple way to run ble-monitor scripts to just output to stdout decrypted messages from dimmer? |
No, currently not. There have been requests to make it available as a pypi package, but I didn't have time to do that. But the main decoding is done in |
Installed HA, added device and it works. It shows actions from dimmer. Full chain works great. |
I'm closing this issue, the script is placed in the repository and FAQ has been updated. |
Hey, I have a brand new It seems to hang on line 111: I tested it manually with
It also seems to hang, once connected, the orange light on the dimmer stops, then it sleeps for around 2-3 seconds, then it blinks again once and dies. Did anyone else encounter this? |
Hi, did you solve it? I also have the dimmer in its new version and with the script I can't extract the key, it gives me an error after the connection. |
Hi, did you solve it? I also have the new version of the dimmer and using the script to extract to 16 bit key also does not work |
There are currently two ways described in the FAQ to get the encryption key for the Yeelight Remote (YLYK01YL) and Yeelight Dimmers (YLKG07YL and YLKG08YL). If you have easier ways to get the encryption key, please report in this issue.
I will later copy some relevant info from #289
The text was updated successfully, but these errors were encountered: