π Tuya BLE Local β Offline Smart Control, Reinvented
Tuya BLE Local is a fully offline Home Assistant integration that enables encrypted control of Tuya Bluetooth Low Energy devicesβwithout the Tuya app, cloud pairing, or developer account.
This is a next-gen rewrite of ha_tuya_ble, rebuilt from the ground up to support:
π AES-encrypted DPS decoding
π‘ BLE service data parsing
π‘ Multi-adapter and ESPHome BLE proxy support
π± BLE fingerprinting by mac_address, product_id, and local_key
No Tuya tokens. No account. No internet. Just rock-solid local control.
β 100% offline BLE pairing and communication
π Encrypted AES key handshake using your deviceβs local_key
𧬠Decodes DPS payloads for sensor, switch, climate, lock, and Fingerbot devices
πΆ Native BLE signal strength and passive polling
π°οΈ Multi-adapter + ESPHome BLE proxy compatibility
π§ Flexible fallback logic for unknown product types
π₯ BLE event support (fingerbot_button_pressed)
π Local-only sensors with auto-created device entities
π¨ Polished device names, icons, and translation strings
π HACS-friendly branding, docs, and config
Option 1: HACS (Recommended)
-
Open Home Assistant β HACS β Integrations
-
Click β+β and select Custom repositories
-
Select category Integration, click Add
-
Install Tuya BLE Local, then restart Home Assistant
Option 2: Manual
Place the tuya_ble_local folder inside your custom_components/ directory:
config/ βββ custom_components/ βββ tuya_ble_local/
Then restart Home Assistant.
-
Open Settings β Devices & Services
-
Click Add Integration β Tuya BLE Local
-
If your device is broadcasting, Bluetooth discovery will pre-fill:
-
mac_address
-
product_id
-
device name
If not, you can enter the details manually:
| Name (optional) | Friendly name for the device | --------------------------------------------------------------------------=
Click Submit to complete encrypted local pairing.
π Need help retrieving your local key? See the Local Key Guide
This integration supports dozens of BLE-powered Tuya devices, including:
π€ Fingerbots (Standard, Plus, CubeTouch)
π± Soil moisture and temperature sensors
π§ COβ monitors and air quality sensors
π Smart locks (BLE-only or dual-mode)
π‘οΈ Radiator valves and climate controllers
πΏ Irrigation systems and faucet valves
π§ Water bottles (yes, really)
See the full list in devices.py
This integration builds on the incredible reverse engineering work of:
@PlusPlus-ua β original BLE parser and DPS decoder
@redphx β Fingerbot command mapping and security handshake details
π§ Refactored and locally re-architected by @cooley420 to support secure, scalable BLE integrations without a single cloud call.
We welcome pull requests! You can contribute by:
Adding new device product_id mappings
Enhancing encrypted packet decoding
Improving fallback detection logic
Submitting branding, banners, or localization
Expanding the Local Key Guide
Together, weβre building a better, cloudless smart home.