Passive BLE Monitor integration

I recently purchased an InkBird IBS-TH2 with both temperature and humidity sensors, installed the Passive BLE Monitor Integration and my TH2 was quickly discovered. Initially, the temperature and humidity sensor entities were disabled (which I thought was odd for a temperature/humidity sensor) but, after enabling them, I am getting values for these two entities that make no sense and never change. My temperature reading is always -52.4 F and my humidity reading is -6.0 RH%. If I look at the Engbird app on my iPhone, the correct temp is displayed (humidity probably correct but no way to verify that). The values of the other exposed entities, except ble minor, update regularly but I donā€™t understand what the ble major value is. Iā€™ve searched extensively for a solution but have found none. I donā€™t think the device is defective since the Engbird app displays the readings from the device correctly. Any guidance in resolving this would be greatly appreciated.

1 Like

Is this component affected by the python upgrade in the latest release? It seems to affect a lot of the Bluetooth built in integrations.

4 Likes

Specifically, in the 2022.7 Breaking Changes it says:

  • Bluetooth
    bluepy, which is a Bluetooth Python library powering several Home Assistant integrations is not compatible with Python 3.10. As such the following integrations may not work when running Python 3.10Beewi
    SmartClim BLE Sensor
    Elgato Avea EQ3 Smart Thermostats
    Leviton
    Decora
    Mi Flora
    Zengge

Seems like this might be a concern for this integration as well, no?

As far as i remember, ble monitor does not use bluepy, but i will test it tomorrow.

Edit. Just tested. It all still works fine with the new version

4 Likes

Shouldnā€™t be a problem, take a look here at the requirements from this custom_component. Bluepy is fortunately not used: :slight_smile:

I too was having this issue. I removed and reinstalled the integration and it worked the second time around.

1 Like

Hey there, is it somehow possible to add the Govee H6125 as a led strip? Because thats a bluetooth only model and i think a lot of people would love to save a bit of money by only buying the bluetooth model!

No, I donā€™t think so, as BLe monitor is only able to passively read data. It canā€™t send anything to devices, and that is what you will need for a light. You might have better luck with ESPhome ble client, but you will need to figure out the comments to send to turn it on/off

Question-Concern.

I have a gaggle of ATC firmwareā€™d LYWSD03MMCs and Govee BLE sensors all working beautifully. I recently picked up an INKBIRD IBS-TH2 (the one with humidity) for outdoors because I live somewhere that makes your face hurt in the winter.

I was able to get the IBS-TH2 working with active scan enabled.

HA is showing the Celsius temp as Fahrenheit - like 21.6 F for room temp. If I change HA to F, then it shows room temp at -6 C Canā€™t seem to figure out how to change it and Iā€™m trying not to install Inkbird apps if possible.

And my concern - I donā€™t get is what active scan actually does and if by having it enabled, am I compromising the battery life of all my other sensors just so this one works?

Iā€™m able to see temp/humidity/battery in the BLE advertisement. I think - still a bit fuzzy on whether the BLE Sniffer/Bluetooth LE Scanner apps are actively scannng? If so, what are we gaining by actively scanning?

Some sensors, like Govee sensors start sending more data after activating active scan. It is basically letting your Bluetooth radio sending a message ā€œsend me more data, if availableā€ to every sensor, while passive is ā€œonly listening, without asking for dataā€. Govee only works with active scan, and active scanning is a Bluetooth adapter setting, so either on or off, regadless of the sensor you are using.

Where did you change the Temperature unit? In the BLE monitor settings, it should be put on Celsius, as the device sends data in Celsius. You can change the unit to display in the HA region settings to F

Important announcement about the future of BLE monitor

Home Assistant is going to add (improved) support for passive BLE devices directly in Home Assistant in the upcoming releases (most likely starting from 2022.8). For each brand, a core BLE integration will be developed, such that maintenance 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 likely that the core HA Bluetooth integrations will not work nicely parallel to BLE monitor. So 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.

Some interesting links

Available as core integration

The following integrations are currently moved/developed as core integrations.

  • SensorPush
  • Inkbird
  • Govee
  • Xiaomi
  • Moat

Not all sensors of Xiaomi made it into 2022.8, mainly the measuring types, like temperature, humidity, moisture, etc are moved. Others will follow later.

16 Likes

Great news - in a way. I do really like BLE Monitor as it is, but having it integrated directly in HA is of course even better.

Will the new HA BLE integrations support BLE gateway? Iā€™ve currently moved all my BLE stuff to separate ESP devices running BLE gateway and do not use the native Bluetooth device on my HASS box at all.

Yes, the devs are working on ESPhome support to forward BLE advertisements. it might not be ESPhome BLE gateway, but probably something very similar as you now have with ESPhome BLE gateway. This would even allow you to make something like room presence detection. The HA devs are also planning to add HA BLE (our own BLE format) support and further improve it. It probably wonā€™t all make it into 2022.8, but most likely one of the following releases.

6 Likes

Trying to add my Govee H5074ā€™s. I see them but how can I tell which ones are which? There is no MAC listed on the device that I can see. Also, how often does HA poll them to pull temps? I thought I could throw one in the freezer and then know which one was which but it seems the temp never changes on the dashboard.

You will have to try e.g. by holding one in your hand. In the fridge it wont be able to send data, due to the metal of the fridge. I think it sends multiple measurement per minute. You have to turn active scan on in the ble monitor settings.

I figured it out which was which. However they only seem to update every hour or three. I do have active scan on but it still only updates every hour+. Very odd.

It is mainly due to the range being decreased by the enclosure of the fridge.
If you want consistent readings, you must have the BLE receiver at a few meters.
You can use an ESP32 also to improve your BLE range.

None are in the fridge, this is for the ones in the bedrooms and livingroom. These are all 3 at most 3 meters away (RV) from the HA box. When these sensors were connected to my tablet and the govee app they updated every 5 minutes no issue. The tablet and the HA box are right next to each other so it should not be a distance issue. I also just powered on another sensor about an hour ago and HA still does not see it. I am thinking my bluetooth adapter is not a great one. It is a TPLink BT 5.0 one but not sure on the exact model number.

If it is the bt500, and it probably is; it is not supported because of frequent connection failures. Just ordered a new one myself because of similar issues. Also see: Bluetooth - Home Assistant

Can you pinky swear you donā€™t deprecate the BLE monitor before thereā€™s an esphome solution? :smiley: