As always, great job! And sometime I wonder how you get so much time, when you said you have been researching since an year on the chip, goes to show how valuable this is for us.
Thank you, its been a years since i searched for a flashing method but i got the Telink flasher about 2 weeks ago, and till then it ocupied my time and couldnt get a clear head till it was done. Learned a lot :)
My truly humble thanks for your extremely hard work and especially your willingness to share this amazing way to use the Xiaomi thermometer in a much more functional way, and especially now I can use it in my Smart Home using Home Assistant. Thank You sincerely. 👍🤗
Absolute respect. Thanks for all the effort you did on this. Already sent small donation to you, I'll keep on doing that whenever I buy new set of those small miracles :)
I was searching for a solution to connect the thermometer to Home Assistant without an Rasperry (with installed BT to MQTT script) and found this video. Explained very good how to flash the device and/or how to get the secret. I should be able now to config the ble monitor for HA. Thank you! :)
I received one of these from an eBay seller. Your web browser-based flashing process was VERY easy and I now have an "unlocked" BLE thermometer/hygrometer, to be used with a "Tasmotized" ESP32 device. Ordering more!
@@atc1441 Do you know what the approximate battery life is with a 5-minute advertising interval, and a CR2032 cell? I will probably make battery holders for 2 AA cells, if I can't get a year out of a single CR2032 at 5 minute intervals.
@@atc1441 I assume that battery life is not directly proportional to reporting interval, meaning that setting the interval to 10 minutes will NOT result in a one-year battery life?
Both on my PC and Android phone, Telink Flasher connects to the devce, LYWSD03MMC, but after I press the "DO ACTIVATION" button it hangs there forever. What may be the cause of this problem? Connecting to: LYWSD03MMC 23:41:46: Detected Mi Thermometer 23:41:46: Connected 23:41:51: Activating now, please wait... .. to eternity...
Hi, mine stays in 18:05:35: Connected - 18:05:42: Activating now, please wait... forever. I have updated it on the mi app now, and still nothing. Can you help me?
@@a.v.1374 Please check ruclips.net/video/RtJpx8BZvMw/видео.html Basically you can use an ESP32 to read the BLE signal and use WiFi to talk with Home Assistant.
@@a.v.1374 I'm currently using github.com/AnthonyKNorman/Xiaomi_BLE_Temperature_Display_for_HA with an Raspberry Pi Zero W. I will switch now to this custom component: github.com/custom-components/ble_monitor/blob/master/faq.md#my-sensors-ble-advertisements-are-encrypted-how-can-i-get-the-key Probably with the custom firmware from Aaron. :D
NOTE: for anyone who is having trouble connecting to the module after flashing firmware from their PC, I was able to use my android phone with the web flasher and connect and make changes (like C -->F) so try connecting from your phone if your PC won't connect.
Hey Aaron! Thank you so much for your work on this man. Really appreciate it. I do have 2 questions: 1. After flashing the custom firmware, the TelinkFlasher refuses to connect? 2. If you do an activation again, the MI token and MI bind key seem to have changed (stock firmware)? Keep up the great work. You're a true asset to the SmartHome DIY community.
Thanks for your work ! It was so easy to flash. Once flashed the thermometers are not visible on my Android phone in the Bluetooth menu . What app are you using here (at 4:53) to display the BLE devices ?
I flashed and paired mine with a tablet, works great! I unpaired and tried to repair - now I can see the device in the web flasher and in nrfconnect - but it no longer appears in the tablet when I scan for bluetooth devices... any idea?
Impressive! Thank you so much for sharing the result of your enormous work (more than a year!) with the community! I am probably missing something though. Why is the custom firmware needed, if you can read the temperature and humidity data with the stock firmware just as fine?
Great work! Have you been looking into the Xiaomi Pro Thermometer & Hygrometer (nice device with E-ink display) ? Maybe your findings on the LYWSD03MMC can be used for reading the data from the Pro as well?
@@atc1441 There's another video on RUclips where he reviews the "Pro" version. It looks like the only difference (besides being bigger) is the addition of a clock. And with 2 batteries I think the clock might be totally separate from the sensor part. The interesting part is that if you look at the 3:30 mark in his video, his phone shows the device with the exact same part number of LYWSD03MMC. I don't have one to test but I would guess your firmware would work as-is on the "Pro" version. ruclips.net/video/8v36RzW8ETM/видео.html
Aaron, first of all, thank You very much for enabling us to use those little sweet sensors in the way we want. It is amazing work. I have been using one of them for few weeks and it is working great. Now I am about to start flash few sensors that I have bought later and I have two questions. One thing is, that with original Xiaomi software sensor updates displayed data every c.a 7 seconds. With custom firmware it does it much less often. Is there a way to make sensors with custom firmware show data on the screen more frequenty? Second - what is the difference between Mi Like and custom advertising type? I thought that Mi Like will be compatible with Xiaomi software, but it is not. Also as far as I remember I have problems reading data from sensor with Mi Like advert type...
Hi Aaron, thanks so much for your effort to make this working. I would love if you can see if there is anyway to stop others to connect to the sensor as it is pretty easy to get connected and get the key.
Hey. See PVVX version of my firmware, he added pin functionality and much more. But be carefull right now there are new pcb revision which do not fully work. It is being worked on them
Hi! I tried the method, but after clicking on do activation, it shows all data, like token or bind key, but in log it shows Activating now, please wait and nothing changes. Do you have any solution for this?
nice danke, bin heute mal dazu gekommen endlich neue Batterien für die Dinger zu kaufen(die Anzeige meint übrigens nur noch 20% voll bei neuen) und wollte das Projekt die über den Raspi in die Überwachung einzubinden mal wieder aufnehmen
Hi man, awesome work. I just bought these recently and have been reading your repo! I just got a question, do you know if you power them with 5V? I don't want to keep changing my coin batteries and have a 5V plug pack that I want to utilise.
One week of trying, via reversing the Android app and rewriting parts of it and via reversing the stock firmware and the communication to the stock app :)
Thanks to Aaron Christophel for the device firmware and thanks to the guys who have updated the web software to be much more versatile now. I found I can use the Vivaldi browser in Linux to do the flashing and the customisation is working much better now. I did have trouble doing it on my phone but now I can do it on my computer I much prefer that anyway.
Hi Aaron!! Great job!! Thank you for sharing. I was wondering, which is the Android app you are using in the video for debuging bluetooth? I'm having problems to integrate the thermometer in my home assistant and I'm not sure at all it is giving updates to my network. I tested some apps worst than yours. It'll be a great help. Thank you very much. Regards.
@Aaron Christophel Thank you Aaron! I've tested my custom firmware sensors with nrf app and they are working well. I'm going to tell you my issue. I bought 6 xiaomi LYWSD03MMC and I flashed 2 with your firmware. I configured ble_monitor in my dockered home assistant. I paste bellow my actual config: ble_monitor: rounding: True decimals: 1 period: 60 log_spikes: False use_median: False active_scan: False hci_interface: 0 batt_entities: False discovery: True restore_state: False report_unknown: False devices: [] - mac: 'A4:C1:38:xx:xx:xx' name: 'Livingroom' temperature_unit: C I can see all the entities of stock firmware sensors but none of ATC firmware. The docker has host networking and privileged flag. I also configured admin permissions and mounted dbus. I can scan for bluetooth devices inside the container. This is the way I run it: docker run -d --name="home-assistant" \ --net=host \ -e TZ=Europe/Madrid \ -v /srv/home-assistant/config:/config \ -v /etc/localtime:/etc/localtime:ro \ -v /dev/bus/usb:/dev/bus/usb \ -v /var/run/dbus:/var/run/dbus \ --privileged \ --cap-add=SYS_ADMIN \ --cap-add=NET_ADMIN \ --restart=unless-stopped \ homeassistant/home-assistant:stable Can you think of what else I can look at? Thank you in advanced. Regards.
Hey. Unfortunately i did never used home assistant, but i know it does work. You can try the Mi Like advertising setting via the web flasher, i think home assistant needed that but not shure at all
@@atc1441 You were right. I set up the advertising type to Mi like and home assistant started getting measurements. I've just changed all my sensors without isues. Thank you very much for your help.
@Aaron Christophel, thanks for your video, I flashed your firmware and choose to show the battery, but when the LCD is cycling showing the original measurments and the one with Battery symbol , the Humidity and temp. values are changing?
Hello, thanks for the great project. For the custom FW, the one from the link which is the "platform" that should be used for ESPHome? if it's still "xiaomi_lywsdcgq" then what should we do with the bindkey. Thanks
Great modification. BLE advertise fine after uploading without establishing connection. However I was not able to change any additional options like: change Advertising interval nor any other custom settings provided via firmware.
@@atc1441 okay, I've re-flashed all of my 4 devices and it looks like there is no issue after all. However those custom setting can be configured only on your firmware. One provided by pvvx doesn't react on changes - yet it still broadcast data perfectly. Thanks for this small change that makes big change in my smart environment.
Thanks so much for posting this! Thumbs up and subscribed. Quick question: Any guess why the readings are so different between stock and your firmware? Thanks in advance.
Thanks for all the hard work on this!! Is there a limit to the Xiaomi BLE sensors that can be monitored by one ESP32 using ESPHome? I have 7 currently and there doesn't appear to be any problems.
Nice work! What app are you using to see the ble data on Android? I have flashed with success, but on my phone I don't see the report as offended as I set in the flash (10s). Very nice work! Thanks
this is some amazing work, thanks for doing this. 🙏 btw, is that "CC-RT-BLE" from an eQ-3 thermostat? have you tried reverse engineering those as well? they run on stm32l152, if I recall correctly.
Hey. Yes thats an eQ-3 they use some geko something chip cant remember. Never played with them as they are just to rare. Dont want to spent so much time on it if noone can/ or only some people can do something with it
Thanks so much for your work. These are great. Although since I've flashed the new firmware, every couple of seconds the sensor displays humidity as 99% and battery low before reverting to normal humidity and no battery warning. Any idea?
Yes. That is how it should be, everytime you see the battery icon the percent of charge is shown in the humidity field. You can turn that feature of with the web flasher if you dont like it
Thank you so much Aaron, great work! I bought some devices and flashed them, all work like a charm they are all around my house. But there is something I am very concerned about. Anyone walking on the street near my house with a smartphone can connect to the sensors, put random correction values, or even worse, flash a malicious firmware. Is any way to prevent unwanted connection / flashing? Maybe a HW solution, like connecting TPx with TPy to make the device read only.
Super Video! Aber eins habe ich nicht ganz verstanden. Man muss doch nicht Kabel anlöten, um das zu flashen, oder? Das geht über OTA? Und ich könnte ja auch deine .bin-Datei verändern um zum Beispiel irgendwelche Animationen anzeigen zu lassen, oder? Danke schön Mal im Voraus
Hey. Ja es kann alles über OTA gemacht werden, das anlöten wird nur gebraucht wenn etwas schief geht also das device gebrickt ist. Du kannst dir die custom firmware selber kompilieren mit anderen funktionen, ist auf GitHub. Andere animationen sind jedoch nicht wirklich drin, das display ist nur ein segment display sprich es hat nur die vorhandenen anzeige elemente
Thank you for all your time and effort as you say it was a long journey so thank you for sharing I have joined your channel in the hope of seeing more of your work I was thinking of buying one have you tested one to see how accurate it is for temperature and humidity??
Hi Aaron, vielen Dank für die Mühe und Arbeit. Super gemacht. Eines leider will nicht so richtig gehen bei mir und das ist der Temperatur und Humidity offset. Was muss ich senden um einen -2 Grad offset zu schicken? Wenn ich FA02 oder FA+02 oder FA2 schicke passiert nichts, was mache ich falsch? Würde mich über deine Hilfe sehr freuen.
Lange her... Ich hab hier eine Version rumliegen und verstehe nicht wirklich. Du zeigst advertisement data under sagst, dass dort die Werte vorhanden sind. Im Inteo erwähnst Du irgendwas von Verschlüsselung und Aktivierung. Werden diese Daten erst advertised nachem man "aktiviert" hat? Meine hardware schein sehr anders zu sein, auch hat das LCD kein BT icon, dafür aber ein "link" icon am unteren Bildschirmrand. Kannst Du mir da irgendwas zu sagen?
P.s. Do you ever have issues getting data? You have to go out and then back in? I tried removing battery and reinsert - but it spent 5 mins with a progress % in grey before showing the last 6hr of stats... Perhaps downloading from the server? Regardless, I do have a few issues with these devices after 3-6 months.
Thank you for your work! I have ordered some of these sensors. Mine are Hardware Revision B2.0 Can I use the flashing tool or should I wait? I would like to help, if you need a sensor for debugging (I have a spare one that I don‘t need right now).
Hi, great job I was about to flash it but first, can someone can please help me with some doubts: Why after min 5 of the video the temperature and humidity shown are different on both devices? After flashing this custom firmware which software do you use to see the data? xiaomi home app does not work anymore? can anyone please confirm if can it be used to authomatize anything? or connecting to google home? It mention you can flash the device back to the factory firmware by selecting the proper file, do anyone please know how/where can I get it?
Have you anyone try to connect this Thermometer to Homekit? I'm trying use it with Homebridge and I cant get it working. I have that bindKey... If is flashed that sensor is still encrypted or no? Thanks
The DIYer community owe you a big Danke! God bless you and one again, appreciate your efforts.
As always, great job! And sometime I wonder how you get so much time, when you said you have been researching since an year on the chip, goes to show how valuable this is for us.
Thank you, its been a years since i searched for a flashing method but i got the Telink flasher about 2 weeks ago, and till then it ocupied my time and couldnt get a clear head till it was done. Learned a lot :)
My truly humble thanks for your extremely hard work and especially your willingness to share this amazing way to use the Xiaomi thermometer in a much more functional way, and especially now I can use it in my Smart Home using Home Assistant.
Thank You sincerely. 👍🤗
I just flashed 4 via the web flasher, incredibly done, thanks
Bought a pack of three for 10 EUR. Finally managed to integrate them in Node-Red. - Thank you very much! Great work!
Do you have a guide for that? :)
Absolute respect. Thanks for all the effort you did on this. Already sent small donation to you, I'll keep on doing that whenever I buy new set of those small miracles :)
Thank you! :)
Thanks very much for doing this, I have 6 of them now, spread around the house... great work! Thank you!
Thank you for this. Appreciate your time.. I had already bought 4 of the units, now they are so much more useful.
Can you use them without bluetooth or when you are in vacation ?
Yes you can simply look at the display to get the Temp
@@atc1441 ehrenmann
Hi, could not connect to Bluetooth after flashing
Fantastic work. I'm sure thousands of us are really grateful. Thanks again
I was searching for a solution to connect the thermometer to Home Assistant without an Rasperry (with installed BT to MQTT script) and found this video. Explained very good how to flash the device and/or how to get the secret. I should be able now to config the ble monitor for HA. Thank you! :)
I received one of these from an eBay seller. Your web browser-based flashing process was VERY easy and I now have an "unlocked" BLE thermometer/hygrometer, to be used with a "Tasmotized" ESP32 device.
Ordering more!
Thanks for letting us know :)
@@atc1441 Do you know what the approximate battery life is with a 5-minute advertising interval, and a CR2032 cell?
I will probably make battery holders for 2 AA cells, if I can't get a year out of a single CR2032 at 5 minute intervals.
6 month is the rough runtime
@@atc1441 I assume that battery life is not directly proportional to reporting interval, meaning that setting the interval to 10 minutes will NOT result in a one-year battery life?
Correct
Amazing work, I learnt a lot from your repo, thank you!
Both on my PC and Android phone, Telink Flasher connects to the devce, LYWSD03MMC, but after I press the "DO ACTIVATION" button it hangs there forever. What may be the cause of this problem?
Connecting to: LYWSD03MMC
23:41:46: Detected Mi Thermometer
23:41:46: Connected
23:41:51: Activating now, please wait...
.. to eternity...
Klasse gemacht...
Danke für die tolle Anleitung
Hi, mine stays in 18:05:35: Connected - 18:05:42: Activating now, please wait... forever. I have updated it on the mi app now, and still nothing. Can you help me?
Excellent, works like a charme!
Man, you are really underrated.
This is gold! Thank you for your dedication. I am using this with Home assistant.
can you tell me how?
@@a.v.1374 Please check ruclips.net/video/RtJpx8BZvMw/видео.html
Basically you can use an ESP32 to read the BLE signal and use WiFi to talk with Home Assistant.
@@a.v.1374 I'm currently using github.com/AnthonyKNorman/Xiaomi_BLE_Temperature_Display_for_HA with an Raspberry Pi Zero W. I will switch now to this custom component: github.com/custom-components/ble_monitor/blob/master/faq.md#my-sensors-ble-advertisements-are-encrypted-how-can-i-get-the-key
Probably with the custom firmware from Aaron. :D
now they working on my intel nuc? Bought an bluetooth usw dongle and used the ble addon on home assistant. with the flash the worked immideatly
@@a.v.1374 Thanks for the follow-up. Glad you made it work!
Einfach nur genial ! Vielen Dank, das müsste man nur noch mit den Flora / Garten Sensor hinbekommen ;-)
Habe leider noch keinen :) aber die möglichkeiten sind gross bei den produkten
NOTE: for anyone who is having trouble connecting to the module after flashing firmware from their PC, I was able to use my android phone with the web flasher and connect and make changes (like C -->F) so try connecting from your phone if your PC won't connect.
Gratulation! Absoluter Hammer mit Website zum Flashen. Einfacher geht es kaum!!
ich komm von nem englisch sprachigen YT-Chanel und ich merke sofort, das ein Deutscher hier am Start ist :D
Richtig ^^
Works like a Charme - just brought my first device into Home Assistant - many thx 🙏🏻
That's the art of opensource :D Love to you
Amazing! Much Appreciated!
this is AMAZING work, thank you
Good job dude! Thanks a lot for your work...
Great Job,thx. It works very well, with WeMos D1mini 32 and Tasmota Bluetooh.
You are great, thank you! I definitely will try it out and I hope it still works after two years :D
Wow, the web flasher looks quite different now :)
mega! Habe ein paar von den Dingern bestellt, werde das versuchen. Vielen Dank schonmal!
Hey Aaron! Thank you so much for your work on this man. Really appreciate it.
I do have 2 questions:
1. After flashing the custom firmware, the TelinkFlasher refuses to connect?
2. If you do an activation again, the MI token and MI bind key seem to have changed (stock firmware)?
Keep up the great work. You're a true asset to the SmartHome DIY community.
Amazing, thank you for the all hard work!!
Nice job, thank you for this!
Vielen Dank, habe mir die besorgt und kann damit jetzt meine Lüfter im Humidor steuern
Super nice, besonders der WebFlasher, danke Aaron!
Danke dir
Thanks for doing the hard work!
thanks for this video...exactly what I needed to get all 4 of my sensors flashed and into HA...
How long did it take HA to see your devices?
@@billkater a few minutes. And all still working weeks after this post I’ve actually stopped it picking up new devices as it was seeing so many
Awesome! Going to look into these for use with Domoticz
Thanks buddy...! Waiting for more...
Oooh! How can someone downvote a video like this!??
Спасибо огромное - Прошилось отлично!!!!
Thank you very much - it was done perfectly !!!!
Thank you!
Fabulous work! Well done, and many thanks!
Fantastic work ! now to flash all 20 devices I have :D
:D please validate it first one less devices in long term
Thanks for your work !
It was so easy to flash.
Once flashed the thermometers are not visible on my Android phone in the Bluetooth menu .
What app are you using here (at 4:53) to display the BLE devices ?
Hey. It is nrfconnect
I flashed and paired mine with a tablet, works great! I unpaired and tried to repair - now I can see the device in the web flasher and in nrfconnect - but it no longer appears in the tablet when I scan for bluetooth devices... any idea?
Amazing, it works! So flashing needs to be! Thank you!
Impressive! Thank you so much for sharing the result of your enormous work (more than a year!) with the community! I am probably missing something though. Why is the custom firmware needed, if you can read the temperature and humidity data with the stock firmware just as fine?
Danke, Aaron! :)
Wow. Keep up the good work. Thanks for this.
Great work! Have you been looking into the Xiaomi Pro Thermometer & Hygrometer (nice device with E-ink display) ? Maybe your findings on the LYWSD03MMC can be used for reading the data from the Pro as well?
The only other one right now is MHO-C401
@@atc1441 There's another video on RUclips where he reviews the "Pro" version. It looks like the only difference (besides being bigger) is the addition of a clock. And with 2 batteries I think the clock might be totally separate from the sensor part. The interesting part is that if you look at the 3:30 mark in his video, his phone shows the device with the exact same part number of LYWSD03MMC. I don't have one to test but I would guess your firmware would work as-is on the "Pro" version.
ruclips.net/video/8v36RzW8ETM/видео.html
Thank you for your efforts!!
Great Work Aaron!!!
Aaron, first of all, thank You very much for enabling us to use those little sweet sensors in the way we want. It is amazing work.
I have been using one of them for few weeks and it is working great. Now I am about to start flash few sensors that I have bought later and I have two questions.
One thing is, that with original Xiaomi software sensor updates displayed data every c.a 7 seconds. With custom firmware it does it much less often. Is there a way to make sensors with custom firmware show data on the screen more frequenty?
Second - what is the difference between Mi Like and custom advertising type? I thought that Mi Like will be compatible with Xiaomi software, but it is not. Also as far as I remember I have problems reading data from sensor with Mi Like advert type...
Super video, great job!
Great job! Impressive work!
U rock man. Excellent!!!
Thank you very much !
Thank's for your answer,
but if have only one Xiaomi thermometer
Hi Aaron, thanks so much for your effort to make this working. I would love if you can see if there is anyway to stop others to connect to the sensor as it is pretty easy to get connected and get the key.
Hey.
See PVVX version of my firmware, he added pin functionality and much more.
But be carefull right now there are new pcb revision which do not fully work. It is being worked on them
@@atc1441 thanks so much for your quick response
@@atc1441 unsure if there is any easy way to find out hardware revision number ? Might be open pcb inside the sensor?
On the box is a date written. That helps to get the version see here github.com/pvvx/ATC_MiThermometer/issues/125#issuecomment-937552241
@@atc1441 thank you again. Appreciate your quality and dedicated work.
Hi! I tried the method, but after clicking on do activation, it shows all data, like token or bind key, but in log it shows Activating now, please wait and nothing changes. Do you have any solution for this?
Great work. New sub. Look forward to seeing your other videos
This is really great. Thanks for your work on this. And your english was great! - Frank in Houston.
Thank you!
Very impressive. Thank you.
nice danke, bin heute mal dazu gekommen endlich neue Batterien für die Dinger zu kaufen(die Anzeige meint übrigens nur noch 20% voll bei neuen) und wollte das Projekt die über den Raspi in die Überwachung
einzubinden mal wieder aufnehmen
Hi man, awesome work. I just bought these recently and have been reading your repo! I just got a question, do you know if you power them with 5V? I don't want to keep changing my coin batteries and have a 5V plug pack that I want to utilise.
5v will kill them. You need to include a voltage regulator to 3.3v
Awesome project! Would love to hear how exactly you recover the keys.
One week of trying, via reversing the Android app and rewriting parts of it and via reversing the stock firmware and the communication to the stock app :)
Amazing work!!! cool
Hi, after I updated to this firmware I can't connect to Xiaomi home. Is it expected?
Thanks to Aaron Christophel for the device firmware and thanks to the guys who have updated the web software to be much more versatile now. I found I can use the Vivaldi browser in Linux to do the flashing and the customisation is working much better now. I did have trouble doing it on my phone but now I can do it on my computer I much prefer that anyway.
Great! Was able to do OTA update, but only Android phone and only from Chrome -- not from Firefox. Spend some time before figuring that out.
Yeah. WebBluetooth is really at its first stages by now
Hi Aaron!! Great job!! Thank you for sharing. I was wondering, which is the Android app you are using in the video for debuging bluetooth? I'm having problems to integrate the thermometer in my home assistant and I'm not sure at all it is giving updates to my network. I tested some apps worst than yours. It'll be a great help. Thank you very much. Regards.
Hey. It is called nRFconnect
@Aaron Christophel Thank you Aaron! I've tested my custom firmware sensors with nrf app and they are working well. I'm going to tell you my issue. I bought 6 xiaomi LYWSD03MMC and I flashed 2 with your firmware. I configured ble_monitor in my dockered home assistant. I paste bellow my actual config:
ble_monitor:
rounding: True
decimals: 1
period: 60
log_spikes: False
use_median: False
active_scan: False
hci_interface: 0
batt_entities: False
discovery: True
restore_state: False
report_unknown: False
devices: []
- mac: 'A4:C1:38:xx:xx:xx'
name: 'Livingroom'
temperature_unit: C
I can see all the entities of stock firmware sensors but none of ATC firmware. The docker has host networking and privileged flag. I also configured admin permissions and mounted dbus. I can scan for bluetooth devices inside the container. This is the way I run it:
docker run -d --name="home-assistant" \
--net=host \
-e TZ=Europe/Madrid \
-v /srv/home-assistant/config:/config \
-v /etc/localtime:/etc/localtime:ro \
-v /dev/bus/usb:/dev/bus/usb \
-v /var/run/dbus:/var/run/dbus \
--privileged \
--cap-add=SYS_ADMIN \
--cap-add=NET_ADMIN \
--restart=unless-stopped \
homeassistant/home-assistant:stable
Can you think of what else I can look at? Thank you in advanced. Regards.
Hey. Unfortunately i did never used home assistant, but i know it does work. You can try the Mi Like advertising setting via the web flasher, i think home assistant needed that but not shure at all
@@atc1441 You were right. I set up the advertising type to Mi like and home assistant started getting measurements. I've just changed all my sensors without isues. Thank you very much for your help.
@Aaron Christophel, thanks for your video, I flashed your firmware and choose to show the battery, but when the LCD is cycling showing the original measurments and the one with Battery symbol , the Humidity and temp. values are changing?
Amazing work!!
Hello, thanks for the great project. For the custom FW, the one from the link which is the "platform" that should be used for ESPHome? if it's still "xiaomi_lywsdcgq" then what should we do with the bindkey. Thanks
Great modification. BLE advertise fine after uploading without establishing connection. However I was not able to change any additional options like: change Advertising interval nor any other custom settings provided via firmware.
Hey.
Please try out the new modified firmware by pvvx, it is linked in the readme and has way better features :)
@@atc1441 okay, I've re-flashed all of my 4 devices and it looks like there is no issue after all. However those custom setting can be configured only on your firmware. One provided by pvvx doesn't react on changes - yet it still broadcast data perfectly. Thanks for this small change that makes big change in my smart environment.
Thank you for the info
Thanks so much for posting this! Thumbs up and subscribed.
Quick question: Any guess why the readings are so different between stock and your firmware?
Thanks in advance.
Hey. It seems xiaomi made an offset to the sensor values.
The values i am showing are directly from the sensor and unedited
@@atc1441 So your data is more accurate?
Hard to say if they are more accurate, they are the ones directly from the sensor so most accurate
Thanks for all the hard work on this!! Is there a limit to the Xiaomi BLE sensors that can be monitored by one ESP32 using ESPHome? I have 7 currently and there doesn't appear to be any problems.
Hey. No limit hardware wise, as only listening to advertising is needed, that means the esp is just listening but never talking to a device
I dont use ESPHome itself so can not answer how many it supports.
Thanks for the support !
Very nice work! Thanks...
Great work, good video. Thank you :-)
I just received a bunch of these how can I tell what revision mine are?
Nice work! What app are you using to see the ble data on Android? I have flashed with success, but on my phone I don't see the report as offended as I set in the flash (10s). Very nice work! Thanks
Thank you.
I am using nRFconnect on Android
this is some amazing work, thanks for doing this. 🙏
btw, is that "CC-RT-BLE" from an eQ-3 thermostat? have you tried reverse engineering those as well? they run on stm32l152, if I recall correctly.
Hey. Yes thats an eQ-3 they use some geko something chip cant remember. Never played with them as they are just to rare. Dont want to spent so much time on it if noone can/ or only some people can do something with it
Thank you!
Thanks for your work. Next beer is on me on your paypal.
Thank you ! :)
Thanks so much for your work. These are great. Although since I've flashed the new firmware, every couple of seconds the sensor displays humidity as 99% and battery low before reverting to normal humidity and no battery warning. Any idea?
Yes. That is how it should be, everytime you see the battery icon the percent of charge is shown in the humidity field.
You can turn that feature of with the web flasher if you dont like it
Thanks so much for the reply. I understand now!. I'll turn it off
Thank you so much Aaron, great work! I bought some devices and flashed them, all work like a charm they are all around my house. But there is something I am very concerned about. Anyone walking on the street near my house with a smartphone can connect to the sensors, put random correction values, or even worse, flash a malicious firmware. Is any way to prevent unwanted connection / flashing? Maybe a HW solution, like connecting TPx with TPy to make the device read only.
Hey. This is a valid concern,
You could use PVVX version of the firmware that one includes the possibility to set a pin for connection
Super Video! Aber eins habe ich nicht ganz verstanden. Man muss doch nicht Kabel anlöten, um das zu flashen, oder? Das geht über OTA? Und ich könnte ja auch deine .bin-Datei verändern um zum Beispiel irgendwelche Animationen anzeigen zu lassen, oder? Danke schön Mal im Voraus
Hey.
Ja es kann alles über OTA gemacht werden, das anlöten wird nur gebraucht wenn etwas schief geht also das device gebrickt ist.
Du kannst dir die custom firmware selber kompilieren mit anderen funktionen, ist auf GitHub.
Andere animationen sind jedoch nicht wirklich drin, das display ist nur ein segment display sprich es hat nur die vorhandenen anzeige elemente
@@atc1441 OK. Super. Danke. Jetzt werden erstmal mindestens 2 Xiaomi Temperatur-Sensoren auf Ali-Express bestellt 😅
My mi humidity sensor 2 shows almost 20% higher humidity than my other hygrometer. What is the problem, how to know which one to believe ?
Thank you for all your time and effort as you say it was a long journey so thank you for sharing I have joined your channel in the hope of seeing more of your work I was thinking of buying one have you tested one to see how accurate it is for temperature and humidity??
The accuracy is very acceptable. The sensor inside have a very good rating
@@atc1441 Thank you for your prompt reply I think I will purchase one then if you think its good cheers Bob
Excellent work! Thank you. Can you tell me what value I should use for a custom offset of -1 degree C? Is is just FA-01 ?
That should be 0xF4 but thats just out of my head right.
Excellent. Should the flasher tool work on an iPhone? I dont seem to detect my device? Or on a Mac? Same, it does not show any device?
Hey.
This will be helpfull github.com/WebBluetoothCG/web-bluetooth/blob/master/implementation-status.md
IPhone is unfortunately not supported
Awesome! Very impressive.
Hi Aaron, vielen Dank für die Mühe und Arbeit. Super gemacht.
Eines leider will nicht so richtig gehen bei mir und das ist der Temperatur und Humidity offset.
Was muss ich senden um einen -2 Grad offset zu schicken?
Wenn ich FA02 oder FA+02 oder FA2 schicke passiert nichts, was mache ich falsch? Würde mich über deine Hilfe sehr freuen.
Lange her... Ich hab hier eine Version rumliegen und verstehe nicht wirklich.
Du zeigst advertisement data under sagst, dass dort die Werte vorhanden sind.
Im Inteo erwähnst Du irgendwas von Verschlüsselung und Aktivierung.
Werden diese Daten erst advertised nachem man "aktiviert" hat?
Meine hardware schein sehr anders zu sein, auch hat das LCD kein BT icon, dafür aber ein "link" icon am unteren Bildschirmrand.
Kannst Du mir da irgendwas zu sagen?
Hey mate, which side of the wall mount tape goes to the wall? Does the BLUE side go to the wall or the WHITE side???
Good question. I dont know the answer sorry. Maybe it is not important at all
@@atc1441 Had no issues with the BLUE facing the rear of the device. 😋😎😋
P.s. Do you ever have issues getting data? You have to go out and then back in? I tried removing battery and reinsert - but it spent 5 mins with a progress % in grey before showing the last 6hr of stats... Perhaps downloading from the server?
Regardless, I do have a few issues with these devices after 3-6 months.
Still very useful in 2024!
Thank you for your work! I have ordered some of these sensors. Mine are Hardware Revision B2.0 Can I use the flashing tool or should I wait? I would like to help, if you need a sensor for debugging (I have a spare one that I don‘t need right now).
I‘m also from Germany
Hi, great job I was about to flash it but first, can someone can please help me with some doubts:
Why after min 5 of the video the temperature and humidity shown are different on both devices?
After flashing this custom firmware which software do you use to see the data? xiaomi home app does not work anymore?
can anyone please confirm if can it be used to authomatize anything? or connecting to google home? It mention you can flash the device back to the factory firmware by selecting the proper file, do anyone please know how/where can I get it?
Thanks for sharing Aaron !! Fantastic !! Quick question .. how to send those data (temp, humidy, bat, vbat) to mysql using ESP32 ? any idea ?
Hey. I guess this will be helpfull, the rest needs to be written still github.com/ChuckBell/MySQL_Connector_Arduino
Have you anyone try to connect this Thermometer to Homekit? I'm trying use it with Homebridge and I cant get it working. I have that bindKey...
If is flashed that sensor is still encrypted or no? Thanks
Great work! Bravo! :)
you are the best! thanks a lot!