-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Xiaomi BLE Temperature and Humidity sensor #24313
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
HASSIO 0.95.4 on Rasppbery PI 3B+ can t get state and tempreature from XIAOMI Temp. sensors. Someone could? |
@Jakobsons i've got 2 sensors one of them works the other one doesn't. Not sure why. |
Same issue. HASS 0.95.4 with direct install on raspberry pi buster. |
Switching to 0.95.4 from 0.95.0 had the same effect for me, working before, not working now :'( |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This message is from helpers/entity_platform.py and I wonder where the scan_interval of 30s comes from. |
|
I am on hass 0.96.3 and the problem has been solved for me. I am on python 3.7. |
Same here, Using 0.96.5
|
same problem here with Xiaomi BLE Temperature and Humidity sensor upgrading from 0.95.4 (working) to 0.96.5 (not working, devices "unknown") |
Same problem here with 0.97. Thanks |
This comment has been minimized.
This comment has been minimized.
I have the same problem with 0.97.1 |
Having same issue here ::: Thank you to fix this on next release |
Same isssue here. Sensors work for approximately 2 hours. then stop. Version 0.97.1 |
Any update here ? I upgraded to 0.97.2 and sensors are not working at all (even after a reboot) I tried to update my python version in my VM but no change, inside HASS.IO version is : python_version | 3.7.4 |
same issue here, it works for a while after the restart then it stops working and need another restart for it to start working again. HA 0.98.3 on HASSOS 2.12, RbPI 3b |
HassOS 3.4 same issue shows Unknown value |
I have same issue: In docker container:
conf:
|
Same for me, works for a few hours then stop. No solution ? |
Same issue here, it works for some time after reboot and then stops. Hassio 0.98.4 |
Same issue, version 0.98.4 installed on docker in raspbian on RBPi3+. |
Back again with updates from the USB BT solution: it works for longer, but eventually stops updating just like with the internal BT. Some times works for a couple of days, some others just a few hours. It's not a permanent solution. |
Hmm... @rquattros the work-around has worked for me. Have some other attached USB (or other) devices to your RPi? Check "dmesg", "dmesg | grep error" etc. on command-line. |
This issue is confusing (and I did read through it). What's the actual verdict? Does the current HA version for Pi work with the sensor without hacks? The current docs at https://www.home-assistant.io/integrations/mitemp_bt/ doesn't warn of any issues and claims sit should work with The folks who posted the last messages (Jan 5 onwards) seem to be discussing about config no longer supported ... adds to confusion |
Same problem here. A tried with an external bluetooth dongle. It works ~2 hours after same error. :\ |
Been having this issue for over 6 months |
Hello, I bouth the same, but the problems continue, I disable internal bluetooth of RPi3b |
After many trial and error troubleshooting, i concluded that this must be related to power issues. After replacing my RPi power supply to a 5V-2.5A one, it works perfectly. No more BT stopping receiving results, no more need for restarts. |
HI @simfun where did you buy?? |
The cable is a Blitzwolf braided USB-A to micro-USB: The power supply (which is actually a quick charger 5V 3A) is this one in photo: I can not remember where i bought it. |
Raspberry Bluetooth (RBp Model 3B) still stop working in a couple of hours (Home Assistant 107.2) Symptoms:
or shows timeout errors
and
I've found 4 possible workarounds for this
|
This problem is referenced in many different issues, some of them: Bluetooth: hci0: Frame reassembly failed (-84) raspberrypi/firmware#1150 Error communicating with local bluetooth adapter (RPi3) home-assistant/core#30147 Xiaomi BLE Temperature and Humidity sensor no longer working after update from 0.95.4 to .096.5 home-assistant/core#25704 Xiaomi BLE Temperature and Humidity sensor home-assistant/core#24313 (comment) Solution seemed to reeduce the boud rate of the serial connection to BT on rpi3b where flow control is missing. The patch to the original btuart file is to reduce the baudrate only for rpi3b models where flow control is missing: - $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR + $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR I'm not a buildroot expert but the best way seemed to move the upstream btuart download in a PRE_PATCH_HOOK so that standard buildroot way of patching can be applied.
This problem is referenced in many different issues, some of them: Bluetooth: hci0: Frame reassembly failed (-84) raspberrypi/firmware#1150 Error communicating with local bluetooth adapter (RPi3) home-assistant/core#30147 Xiaomi BLE Temperature and Humidity sensor no longer working after update from 0.95.4 to .096.5 home-assistant/core#25704 Xiaomi BLE Temperature and Humidity sensor home-assistant/core#24313 (comment) Solution seemed to reeduce the boud rate of the serial connection to BT on rpi3b where flow control is missing. The patch to the original btuart file is to reduce the baudrate only for rpi3b models where flow control is missing: - $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR + $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR I'm not a buildroot expert but the best way seemed to move the upstream btuart download in a PRE_PATCH_HOOK so that standard buildroot way of patching can be applied.
This problem is referenced in many different issues, some of them: Bluetooth: hci0: Frame reassembly failed (-84) raspberrypi/firmware#1150 Error communicating with local bluetooth adapter (RPi3) home-assistant/core#30147 Xiaomi BLE Temperature and Humidity sensor no longer working after update from 0.95.4 to .096.5 home-assistant/core#25704 Xiaomi BLE Temperature and Humidity sensor home-assistant/core#24313 (comment) Solution seemed to reeduce the boud rate of the serial connection to BT on rpi3b where flow control is missing. The patch to the original btuart file is to reduce the baudrate only for rpi3b models where flow control is missing: - $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR + $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR I'm not a buildroot expert but the best way seemed to move the upstream btuart download in a PRE_PATCH_HOOK so that standard buildroot way of patching can be applied.
For me, 3.Use better power adapter |
The only thing that is working for me at the moment is installing the 'Xiaomi passive BLE monitor sensor platform' through the HACS system. It has worked for well over a week with no problem. I followed the instructions here: |
In my case it seemed to work first 24 hours, then the same bluetooth connection errors |
This problem is referenced in many different issues, some of them: Bluetooth: hci0: Frame reassembly failed (-84) raspberrypi/firmware#1150 Error communicating with local bluetooth adapter (RPi3) home-assistant/core#30147 Xiaomi BLE Temperature and Humidity sensor no longer working after update from 0.95.4 to .096.5 home-assistant/core#25704 Xiaomi BLE Temperature and Humidity sensor home-assistant/core#24313 (comment) Solution seemed to reeduce the boud rate of the serial connection to BT on rpi3b where flow control is missing. The patch to the original btuart file is to reduce the baudrate only for rpi3b models where flow control is missing: - $HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR + $HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR I'm not a buildroot expert but the best way seemed to move the upstream btuart download in a PRE_PATCH_HOOK so that standard buildroot way of patching can be applied.
It's fixed in hassos 3.13 |
After update battery draining on Xiaomi was very fast. Did someone more experience that? |
I think this is due to how the sensor has been implemented not really related to the communication problem or fix itself. |
But i didn't remenber that this component drains the battery so fast. Anyway, I will migrate to the custom one, that collects data passively. Thanks. |
Probably because wasn't working :) |
Hey @juaigl, I noticed about that battery issue. |
I was speaking about when it was working. For my was until 102-103, if im not wrong
Thank you for you suggestion |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Home Assistant release with the issue:
0.94.0b8
Last working Home Assistant release (if known):
0.93.2
Operating environment (Hass.io/Docker/Windows/etc.):
Hassio
Component/platform:
https://www.home-assistant.io/components/mitemp_bt/
Description of problem:
Not updating and showing Unknown temp and humidity only error is
(Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30)
Rolled back to 0.93.2 and all working fine.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):The text was updated successfully, but these errors were encountered: