by relaying messages from Gateway’s TTL to MQTT, running on ESP-01S (ESP8266).
It will relay the information of did/eid/edata from all the ttl messages contain ble_event to hass instance via mqtt, with the topic of mqttl/did xxxx/eid xxx and payload of edata.
On the HA side, the value of edata will be used to mapped to individual sensors.
Works with multiple BLE Gateways of different types and any kinds of Xiaomi (Mijia) BLE devices.
Usage
Flash ESP module (by usb-ttl or OTA);
Connect to the TTL pins of BLE Gateway device;
Join the AP named mqttl_xxxx , with the password of mqttlpassword ;
Configure WiFi and MQTT broker;
Configure the sensors by yaml in Home Assistant (this step could be accomplished before flash ESP).
But the most important for me to integrate is the smart lock, which is not supported by ESPHome, even in release 1.15.0, while it could be integrated by my effort.
And there are many brands and models of smart lock, and other bt devices, could also be integrated this way.
I found that the device on the picture is a gateway from Zelkova smart lock. Probably other internationally-available smart lock gateways can have similar ttl output.