Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 | 4 | 5
andrewbnz
59 posts

Master Geek


  #2958107 23-Aug-2022 10:18
Send private message

I have a bunch of the SONOFF SNZB-02 sensors, I have been using them for approx 3months now and I am pretty happy with them, two (both the most distant from the USB dongle) of them stopped communicating after a few days, I reset and repaired them put them back in the same place and they have been fine ever since. 

 

I purchased them from Banggood AU warehouse and had them within 8 days at a cost of approx $12.4 per sensor including shipping

 

Link: 5pcs SONOFF SNZB-02 - ZB Temperature And Humidity Sensor




timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962016 1-Sep-2022 14:28
Send private message

@eonsim @openmedia @TommySharp @peejayw @rscole86 @eluSiveNZ what's the best way to connect the Xiaomi sensors to HA? I'm trying to use the new Xiaomi BLE plugin in HA 2022.8 but every time I get a bind key and enter it into HA it says "incorrect key".

 

This tutorial says you can use the Passive BLE Monitor integration, with or without a custom firmware. Is that the right plugin to use, and should I use a custom firmware or stick with stock?

 

The BLE Monitor Integration says what I've copied below in italics. It says part 1 of the Xiaomi integration is done, but part 2 is still to be done.

 

Home Assistant 2022.8 has (improved) support for passive BLE devices directly in Home Assistant. For each brand, a core BLE integration will be developed, such that maintanance can be divided over more people, using the latest Bluetooth packages (bleak). I'm working together with the Home Assistant devs to move sensors from BLE Monitor to Home Assistant core integrations. During the transition, BLE monitor will still be available, but it is possible that the core HA Bluetooth integrations will not work niceley parallel to BLE monitor. If it is not working together, try to enable active scan in the BLE Monitor. My advise, when all your sensors are available in Home Assistant, make the move. The aim is to have all sensors moved into Home Assistant as core integration. After the move, BLE monitor will probably be deprecated. If you want to help moving sensors from BLE monitor, feel free to help. Check out the links below.


openmedia
3309 posts

Uber Geek

Trusted

  #2962066 1-Sep-2022 14:43
Send private message

timmmay:

 

@eonsim @openmedia @TommySharp @peejayw @rscole86 @eluSiveNZ what's the best way to connect the Xiaomi sensors to HA? I'm trying to use the new Xiaomi BLE plugin in HA 2022.8 but every time I get a bind key and enter it into HA it says "incorrect key".

 

This tutorial says you can use the Passive BLE Monitor integration, with or without a custom firmware. Is that the right plugin to use, and should I use a custom firmware or stick with stock?

 

The BLE Monitor Integration says what I've copied below in italics. It says part 1 of the Xiaomi integration is done, but part 2 is still to be done.

 

Home Assistant 2022.8 has (improved) support for passive BLE devices directly in Home Assistant. For each brand, a core BLE integration will be developed, such that maintanance can be divided over more people, using the latest Bluetooth packages (bleak). I'm working together with the Home Assistant devs to move sensors from BLE Monitor to Home Assistant core integrations. During the transition, BLE monitor will still be available, but it is possible that the core HA Bluetooth integrations will not work niceley parallel to BLE monitor. If it is not working together, try to enable active scan in the BLE Monitor. My advise, when all your sensors are available in Home Assistant, make the move. The aim is to have all sensors moved into Home Assistant as core integration. After the move, BLE monitor will probably be deprecated. If you want to help moving sensors from BLE monitor, feel free to help. Check out the links below.

 

 

 

 

Are you using the small square Xiaomi sensors? I use an alternative firmware so I don't need the bind key





Generally known online as OpenMedia, now working for Red Hat APAC as a Technology Evangelist and Portfolio Architect. Still playing with MythTV and digital media on the side.




timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962070 1-Sep-2022 14:56
Send private message

openmedia:

 

Are you using the small square Xiaomi sensors? I use an alternative firmware so I don't need the bind key

 

 

Yes, I'm using the small square ones, LYWSD03MMC.

 

I'm using the TeLink Flasher to get the bind key, but it doesn't work. Should I just flash it? Does the display look much the same? The screenshot I saw it looked like it didn't even have the % sign after the humidity. If I should do that, any tutorial or process you recommend?

 

Which HA integration do you use once flashed?


eluSiveNZ
188 posts

Master Geek


  #2962082 1-Sep-2022 15:27
Send private message

timmmay:

 

Yes, I'm using the small square ones, LYWSD03MMC.

 

I'm using the TeLink Flasher to get the bind key, but it doesn't work. Should I just flash it? Does the display look much the same? The screenshot I saw it looked like it didn't even have the % sign after the humidity. If I should do that, any tutorial or process you recommend?

 

Which HA integration do you use once flashed?

 

 

I haven't moved over to the HA BLE just yet as its still pretty new.

 

I'm using an ESP32 with ESPHome firmware to connect via BLE.

 

I've also moved to https://github.com/pvvx/ATC_MiThermometer seems to be more active development (I also see there's mention of HA BLE too..)

 

Firmware also allows the screen to be customised with a few options, I've removed the smiley face.

 

 

 

 


openmedia
3309 posts

Uber Geek

Trusted

  #2962090 1-Sep-2022 15:47
Send private message

I also use an ESP32 to capture all of the data as I can't real all my sensors from a single location over bluetooth.

 

  • https://github.com/pvvx/ATC_MiThermometer

I haven't tried the HA_BLE update yet.





Generally known online as OpenMedia, now working for Red Hat APAC as a Technology Evangelist and Portfolio Architect. Still playing with MythTV and digital media on the side.


rscole86
4968 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  #2962096 1-Sep-2022 16:02
Send private message

@timmmay, sorry I'm using ESP32 boards, as my HA is in a cabinet in one corner of the house and my sensors are sprinkled throughout. I wouldn't get 3/4 from integrated BLE.

I'm running stock firmware, but used a modified Xiaomi app to get the bind keys.

 
 
 

GoodSync. Easily back up and sync your files with GoodSync. Simple and secure file backup and synchronisation software will ensure that your files are never lost (affiliate link).
timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962099 1-Sep-2022 16:06
Send private message

I've flashed my first sensor, then I'll try the Passive BLE Monitor integration.

 

Just reading up on what all the config settings are - advertising interval, TX Power and VANT, etc.

 

I may end up with ESP32 stuff later so I can get distribute the temperature sensors around, but I don't really want to have to bother building them. I have a USB Bluetooth adapter that's meant to be good / long range so I'll try that first.


timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962116 1-Sep-2022 16:32
Send private message

I have one sensor flashed, Passive BLE Monitor installed, and I configured one sensor in the HA Passive BLE Monitor GUI using the device Mac that I got from the Mi / Xiaomi app. It's been about 10 minutes, no sign of any temperature sensor turning up. I've tried turning on active scanning, but no luck, any tips?

 

I've just changed from using the USB Bluetooth adapter to the Pi Bluetooth adapter, to see if it's a problem with the USB.

 

In an ssh session to the pi I run the command below to scan for Bluetooth devices. It finds my phone, but not the flashed temp sensor. Any ideas?

 

hcitool scan --length=30


timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962138 1-Sep-2022 17:07
Send private message

Ah... I switched to R.Pi4 built in Bluetooth and the sensor temperatures have appeared in HA. I had a bit of hassle trying to set up the USB Bluetooth adapter, I thought I had it because things could scan, but apparently not. I wrote it up a bit here.


eonsim
389 posts

Ultimate Geek

Trusted

  #2962166 1-Sep-2022 20:25
Send private message

Like the others I primarily use the ESP32 BLE>WIFI function https://esphome.io/components/sensor/xiaomi_ble.html. I have previously had the BLE passive integration running reasonably successfully for sensors within 3-4m of the HA server and a BLE adapter.


timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962168 1-Sep-2022 20:50
Send private message

Is there an easy way to get a few of the ESP32 BLE -> WiFi things without having to solder / assemble them myself? This Bluetooth thing is really annoying / difficult, I'm having a heck of a job getting the USB Bluetooth adapter going that was listed as compatible with HA.


eluSiveNZ
188 posts

Master Geek


  #2962184 1-Sep-2022 22:02
Send private message

timmmay:

Is there an easy way to get a few of the ESP32 BLE -> WiFi things without having to solder / assemble them myself? This Bluetooth thing is really annoying / difficult, I'm having a heck of a job getting the USB Bluetooth adapter going that was listed as compatible with HA.



Just grab a development board. The BLE is built into the ESP it self. You just need to power it - micro USB so nothing to solder.

richms
28050 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962190 1-Sep-2022 22:16
Send private message

timmmay:

 

Is there an easy way to get a few of the ESP32 BLE -> WiFi things without having to solder / assemble them myself? This Bluetooth thing is really annoying / difficult, I'm having a heck of a job getting the USB Bluetooth adapter going that was listed as compatible with HA.

 

 

Any ESP32 development board should do it. There are some newer variants with different cores and hardware on them, so get the old style one with the wroom module on it.





Richard rich.ms

timmmay

20486 posts

Uber Geek

Trusted
Lifetime subscriber

  #2962236 2-Sep-2022 07:34
Send private message

Once I have a ESP32 what are the next steps? Do I need to flash a firmware? Apply some software? Or just plug it in and ignore it? I assume I have to at least pair it with the WiFi, since I don't have ethernet everywhere, how's that done? Do I need to configure it to find my HA instance? There's probably a tutorial but I don't even really know what to search for. Thanks for any suggestions :)

 

I'm still going to try to get the USB Bluetooth working, but I might do ESP32 as well since it sounds cheap.

 

<rant>This whole home automation thing is really quite complex. Home Assistant is more like a framework or programming language than a product in some ways, and there's absolutely no way that an average person could get all this stuff working. Yesterday I spent hours trying to find the chipset drivers for my USB Bluetooth controller, today I'm probably learning about embedded systems like ESP32!</rant>


1 | 2 | 3 | 4 | 5
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Māori Artists Launch Design Collection with Cricut ahead of Matariki Day
Posted 15-Jun-2025 11:19


LG Launches Upgraded webOS Hub With Advanced AI
Posted 15-Jun-2025 11:13


One NZ Satellite IoT goes live for customers
Posted 15-Jun-2025 11:10


Bolt Launches in New Zealand
Posted 11-Jun-2025 00:00


Suunto Run Review
Posted 10-Jun-2025 10:44


Freeview Satellite TV Brings HD Viewing to More New Zealanders
Posted 5-Jun-2025 11:50


HP OmniBook Ultra Flip 14-inch Review
Posted 3-Jun-2025 14:40


Flip Phones Are Back as HMD Reimagines an Iconic Style
Posted 30-May-2025 17:06


Hundreds of School Students Receive Laptops Through Spark Partnership With Quadrent's Green Lease
Posted 30-May-2025 16:57


AI Report Reveals Trust Is Key to Unlocking Its Potential in Aotearoa
Posted 30-May-2025 16:55


Galaxy Tab S10 FE Series Brings Intelligent Experiences to the Forefront with Premium, Versatile Design
Posted 30-May-2025 16:14


New OPPO Watch X2 Launches in New Zealand
Posted 29-May-2025 16:08


Synology Premiers a New Lineup of Advanced Data Management Solutions
Posted 29-May-2025 16:04


Dyson Launches Its Slimmest Vaccum Cleaner PencilVac
Posted 29-May-2025 15:50


OPPO Reno13 Pro 5G Review
Posted 29-May-2025 15:33









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.