-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
BLE-bridge for certain Mijia-Bluetooth-sensors via NRF24L01 #7394
Conversation
NRF24l01(+)This chip is manufactured by Nordic Semiconductors as a single chip transceiver in the 2,4 GHz band. There are many applications in wireless consumer products and the chip is well-known in many Arduino-projects as a versatile low-cost-solution. Several further work was done later on by different developers and a working bridge to read sensor data from a XIAMO-MI_HT_V1 already exists. For the Tasmota-driver a new solution was found. USAGE:Uncomment #USE_SPI and #USE_NRF24 and configure the pins vor SPI_DC and SPI_CS while connecting the hardware SPI pins 12 - 14(MOSI, MISO and CLOCK). Comment out all other SPI-related (display-)drivers. No additional steps are necessary. For the first driver versíon multiple MI_HT_V1-sensors and Flora-sensors are supported. They will be discriminated by using the company-assigned ID of the BLE Public Device Address (= the "lower" 24 bits). So a TELE-message could like like this:
As the NRF24l01 can only read BLE-advertisements, only the data in these advertisements is accessible. The driver tries to figure out, if the NRF24l01(+) is still working and will internally re-init the radio, if no data is received for a certain period of time (default = 120 sec). Working sensors:MI_HT_V1:This device works with an AAA-battery for several months and the driver can read temperature, humidity and battery level. Mi Flora:Works with a CR2032-coin-cell and provides temperature, illuminance, (soil-)humidity and (soil-)fertility. It can not be ruled out, that changes in the device firmware may break the functionality of this driver completely !!! |
Add experimental support for NRF24L01 as BLE-bridge for Mijia Bluetooth sensors by Christian Baars (#7394)
That should work, as long as they did not change the internal working. From the outside and specs I have the same sensor at home.
Please keep in mind, that this is really hacky and experimental stuff. So only buy it, if you have a „plan b“ to use it.
I already published a WIKI-entry on tasmota.com for it.
Best regards
Christian
… Am 05.01.2020 um 13:24 schrieb markusb68 ***@***.***>:
Hi,
does it also support the one with the round Display?
https://de.aliexpress.com/item/32846083629.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
sorry, can't find it, can you share a link, please? Thanks |
Tasmota.com -> Documentation -> Peripherals -> MIBLE |
Please compile with uncommented Then watch the console (with seriallog 3) So far I can see no error in your config. Maybe we can find some more infos. |
There is not much. Hope it helps:
|
Okay, no signs of data traffic. This should catch generic Xiaomi-packets and show „something“ in the console. Change line 630 to: This should show all captured packets and produce lots of traffic in a normal environment with many bluetooth devices around. Test you hardware setup with a sketch of your choice to test the general functionality of the used hardware. BTW, this channel is not intended for this kind of support. If possible grab me on discord or open an issue. That way every information is available for all users. Good luck! |
Hello Christian, just opened an new issue: |
Description:
-adds a generic driver for the NRF24L01 based on slightly modified RF24-library
-add sensor driver to sniff BLE-advertisements from certain BLE-sensors and present them as "virtual" sensors via MQTT and WebUI (currently MJ_HT_V1 and Mijia Flora Sensor)
(some changes to my_user_config.h in the SPI/DISPLAY-section must be reverted before a potential merge)
Checklist: