-
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
support LYWSD03-BT-sensor via HM-10(-bridge) #7683
Conversation
The HM-10 is a 3.3v Bluetooth 4.0 module based on the TI CC2540/1-Chip. It is made by Jinan Huamao and one of a whole family of Bluetooth devices. The communication with the ESP8266 works over serial connection using AT-commands and the driver expects the default baud rate of firmware>700 which is 115200. Getting data from BT-Xiaomi-Devices:Different vendors offer BT-solutions with different accessibilities under the MIJIA-brand. A common solution is the use of so-called „MiBeacons“ which are BLE advertisement packets with a certain data structure, which are broadcasted by the devices automatically. These packets already contain the sensor data and can be passively received by other devices. Most of the „older“ BT-sensor-devices use unencrypted messages, which can be read by all kinds of BLE-devices or even a NRF24L01. The big advantage is the power efficiency as no active bi-directional connection has to be established. This is therefore the preferred option, if technically possible. With the arrival of the (cheap) LYWSD03 came the problem of encrypted data in MiBeacons, which to date has not been successfully decrypted in open source projects. Tasmota-HM10-driverprerequisites:-firmware 707 (other versions may work, but this is undefined behavior) expected behavior:
command interface:
|
Many thx! |
Add support for MI-BLE sensors using HM-10 Bluetooth 4.0 module by Christian Staars (#7683)
Hello Christian, Tried it and see: HM10 Firmware 707 Maybe an alternative for the nRF code. |
Description:
Support for the HM-10-BLE-module. First supported sensor is the (quite new) LYWSD03. Some other Mijia-sensors will be shown and support is planned for the future.
Checklist: