-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
TIP: Getting the bind key for the Xiaomi Mijia LYWSD03MMC sensor #277
Comments
Thanks for providing the tip, I included it in the official docs! |
Thank you so much, this is so simple and easy! |
🎉 This issue has been resolved in version 2.9.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Too bad it keeps asking, and then the bind key doesnt work, you have to get a new bind key, remove the integration and add again and copy paste the key again. this is a tiresome loop. |
Same issue here! Can‘t get a valid bind-key. |
I had the same |
Same for me. I suspect a recent firmware update has changed this behaviour. I ended up flashing mine to the ATC firmware and it worked in ESPHOME first try. |
Unfortunately even this does not work any more with the "new" update that Xiaomi has rolled out. If anyone has updated their thermometer they now can not flash it with custom firmware, unless you open it up and connected through wires to some pins on the board itself, nor (as far as I know) get a valid bind key. If anyone knows how to get a valid bind key or flash it with custom firmware, without opening it up, I would like to know |
same issuse can smn help?? |
Actually yes i have found 2 way to do it. 1 is only for home assistant and the other is to get the the bind key and more info about your devices. Both requirer to connect to your Xiaomi account which you have conected the thermomiter.The generic way is to use the script from this github user (https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/).The second way is to use this(Xiaomi Miot Auto, https://github.com/al-one/hass-xiaomi-miot).Home Assistant hacs integration it will only add it to home assistant without giving you any info except the temperature, humidity and battery percentage in home assistant (note that it is requirers a bluetooth gateway.I have a xiaomi camera which functions as one) |
i do the steps i get the token also ip i try the xiaomi miot auto from hacs and the only i do is to add on overview but nothing about iformation 0 temprature the device is as unknown. also my PI4 recofnize my Xiaomi as BLE but i cant find the blindkey id is the 'token' or 'ID' i put on the xiaomi ble and nothing! (mou ta exei kanei tsourekia autos o sensor!) |
This is for method 2 which works only in home assistant. It needs some time when you first set it up. I sugest that you let it run for a cuplue of hours (it does not need that much 30m i belive will probably be enough but why not let it run for more-)
This is for the generic method 2. Devices found for server "de" @ home "XXXXXXXXXXXX": NAME: Temperature sensor The XXXXXX above mean sencitive info
kai emena otan to katalaba oti ekane mono tou update alla apo tote pou to eftiaza doulebei toso kala pou to exv zexasei. |
The sensor data broadcast by the sensor is encrypted. In order to decrypt it we need a 32 character hexadecimal bindkey. The provided bindkey did not work, sensor data could not be decrypted. Please check it and try again. and i have put the BLE KEY is not working! sensor run 17h and 0 info about temp i think i do somthing wrong (i am beginner with this) i delete it and put again with MI account 'cn' and i wait for info again! i need to make smnthing changes on mi home app? **dn mporo na katalavo ti paei lathos se emena mou bgazei unknown thn suskeu 0 infos kai trexei kai 17 ores, ksana ekana thn diadikasia apo thn arxi mpas kai to ekana fail tora apla tha perimeno. To script parolou pou m bgazei to BLE KEY dn litourgei m bgazei to error pou grafo poio pano. Eipa na katso na ftiaksa sto HA ena 'eksipno spiti' kai mou exei bgei o k.... me to tuya smart iR dn mpainei sto HA me to xiaomi sesonr thema ahhaha dn paleute! apo agrinio eimai esu? |
i have this: from the script i install on my windows and i get the info so from HACS i install xiaomi mio auto i connect with my account and he find my device as unknow: and i have the xiaomi BLE: when i press the blue button ask my to put the blidkey i put and i have the error! so i run the HA as portainer when i go to portainer console and go to configuration.yaml looks like this: so if i need to write smthng on configuration.yaml i dont know sxolio exo teliosei edo kai xronia kai strato 25 eimai. esu poso? spoudazeis sthn kriti? |
ok i did it the problem was i had CN as server on mi home app i changed it to DE and i fix it the Xiaomi BLE regognize now my sensor! giorgara me esoses eixa tora mia eudoamda epsakna liseis kai pos na vro kai to blindkey euxaristo polu! |
Tipota re su. Sorry pou den sou apantisa pio noris giati den imoun ston ipologisti. Exei me bolebei polu perisotero. Kai ego to ephakna polu kai telika birka auto. Ama exeis kai tipota allo xiaomi smart kati mporeis na to baleis kai auto me perisoteres litoutgies apo to kanoniko intigration akomi kai an lene oti den mppreis na to baleis.Ta to graphzo kai sta egklezika ama to dei kai kanenas allos I remember that if you have any else smart device from xiaomi you can add it to with this integration ways better features than the default Integrations I am really glad that I helped someone like me. To find this integration I had to watch a YouTube video from someone from China speaking Chinese and understand everything only from the video. |
Below is the easiest way I found to get the bind key for the Xiaomi Mijia LYWSD03MMC sensor. I used a mobile phone and performed the following steps:
Source: Around the 11:40 mark of https://www.youtube.com/watch?v=NXKzFG61lNs
The text was updated successfully, but these errors were encountered: