I’m curious about the zigbee solution. I have over 10 Xiaomi V2 sensors and am using Home Assistant with raspberry 4 but the problem that I have is that the sensors are too far from the raspberry and I’m wondering if the zigbee solution will work out of the box and extend the network to see all of my sensors.
Given that any new purchases of this Xiaomi sensor will have the new firmware which currently does not allow OTA installation (having spent quite some time looking for possible ways)… Until OTA is back up and running again, the quickest way to get these sensors running on home assistant is with a wired flash as follows:
Follow the instructions in this link to flash:
GaryJS3 instructions
you will need a very small torx screwdriver to open the device, but if you have one of these (most laptop repair kits have these) it just clicks open, and you can place the pos and neg on the battery terminals, and hold the one other pin onto P14 as in GaryJS3 suggests. This can be done with no soldering so you can get a device done in around a minute once you have done one.
You use the USB flashing software usb flash writer to install whichever firmware you want, and once this has been done, you are free to use the OTA tool to change firmware if you decide the one you used isnt what you want.
Once flashed, and modified as you want using the OTA config tool, you need to make sure you disconnect the device, either by manually disconnecting the USB-serial adapter or pressing disconnect on the OTA flasher… if you dont do this, the device will not appear on HA in ‘discovered devices’
You need to have bluetooth proxies set up on HA - I do this via my gen2 shelly devices, which all can have bluetooth enabled (both on the device and in HA), but you can use whatever way you like to do this… If you do, and they are in range, then the sensors will autodiscover.
I’ve just purchased the sensor and the over the air update is still possible, but the versions have changed, it’s now V48. After that I can do change things with smileys etc. But when it shows up in HA it show in the Xiaomi integration, but it’s not sending the temperature or the humidity. Can someone send me in the right direction? When I try to use BT home I get “No devices found on the network”.
/edit after the 23rd restart in 5 hours it did show up, so no need. But it does work OTA
I just received a sensor today, but when trying to do an OTA it reports “Version: 2.1.1_0159 is temporarily not supported”.
Hardware Revision String: B1.5
Software Revision String: 0159
Edit: This is a known issue. It simply isn’t supported due to a change in encryption used in the firmware. Apparently direct serial connection still works, but I haven’t tried it yet.
Hi,
I got 5x of these sensors. In the Xiaomi Home app I can see Firmware SDK :1.0.0_0130
So it should be possible to flash these devices (OTA) with the custom firmware.
Then the questions ![]()
I assume Xiaomi Home app will not recognize device after the flashing? What about other apps? I don’t have Home Assistant yet. My goal is to have some gateway / bridge where BT are connected on one side and to approach this within the house (wifi) but also outside the house (cloud). I know this can be achived with Home Assistent (server) and BT Proxy. Is there other way to do this?
Hi all.
I followed the whole procedure and the firmware update seems to have gone well. From Telink Flasher I can change the settings and they take effect immediately.
But from Home Assistant BTHome does not detect anything, neither automatically nor manually.
Does anyone have any idea what I could check?
Thanks
Same happens to me, I could flash it with no issues, the display on the device works as expected, but I get nothing on HA. Did you succeed getting it working?
Replying to myself, in case it’s useful to someone else, reading here:
I saw the creator of this mentions to set the format correctly, so I changed this (from the defaults):
I changed Advertising type to PVVX (custom), cleared AdFlags and set GPIO_RS to None, and now it works on ESPHome.
Hi,
I’ve just received four Xiaomi Mi sensors and flashed three of them with the Zigbee firmware. However, after flashing, the displays froze. I tried removing and reinserting the batteries, but now the displays no longer turn on at all — same issue on all three devices.
That said, everything else seems to be working fine. I was able to pair them with Home Assistant, and both temperature and humidity readings are coming through correctly.
Any idea what might be causing this? I previously flashed two other units a few months ago without any issues.
Also, is it possible to change or update the firmware again once the Zigbee firmware is installed?
Thanks in advance for your help!
I know this is an old thread, but perhaps you or somebody else can help here.
How do I change the update interval to 5 mins?
I can see that the battery wont last long if it keeps updating like every 30 seconds.
I’ve configured it via Telink Flasher v12.3, but I dont see anywhere I can change that update interval?