Skip to content

Commit 9d4a9b3

Browse files
authored
Update Bluetooth.md
1 parent 1a39ab8 commit 9d4a9b3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/Bluetooth.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,7 @@ The stability of regular readings will be strongly influenced by the local envir
288288

289289
## BLE Sensors on ESP32 using built-in Bluetooth
290290

291-
You must [compile your build](Compile-your-build) for the ESP32. Change the following to `user_config_override.h`:
292-
293-
```
294-
#ifdef ESP32
295-
#define USE_MI_ESP32 // Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)
296-
#endif // ESP8266
297-
```
291+
Since Tasmota v9.1.0.1 this driver is part of the standard build 'tasmota32'. It must be enabled at runtime via `setoption115 1`.
298292

299293
To turn on/off support for decyrption, change the following in the driver code:
300294

@@ -317,7 +311,9 @@ MI32Unit <a id="mi32unit"></a>|`<n>` = toggle the displayed temperature units of
317311
MI32Page<a id="mi32page"></a>|Show the maximum number of sensors shown per page in the webUI list.<BR>`<value>` = set number of sensors _(default = 4)_
318312
MI32Battery<a id="mi32battery"></a>|Reads missing battery data for LYWSD02, Flora and CGD1.
319313
MI32Key<a id="mi32key"></a>| Set a "bind_key" for a MAC-address to decrypt sensor data (LYWSD03MMC, MJYD2S). The argument is a 44 uppercase characters long string, which is the concatenation of the bind_key and the corresponding MAC.<BR>`<00112233445566778899AABBCCDDEEFF>` (32 characters) = bind_key<BR>`<112233445566>` (12 characters) = MAC of the sensor<BR>`<00112233445566778899AABBCCDDEEFF112233445566>` (44 characters)= final string
320-
MI32Beaconx <a id="mi32key"></a>| Set a BLE device as a beacon using the (fixed) MAC-address<BR>x - set beacon 1 .. 4 <BR> x= 0 - will start a BLE scan and print result to the console <BR>`<value>` (12 or 17 characters) = use beacon given the MAC interpreted as a string `AABBCCDDEEFF` (also valid: `aa:BB:cc:dd:EE:FF`) MAC of `00:00:00:00:00:00` will stop beacon x
314+
MI32Beaconx <a id="mi32beacon"></a>| Set a BLE device as a beacon using the (fixed) MAC-address<BR>x - set beacon 1 .. 4 <BR> x=0 - will start a BLE scan and send result via TELE-message <BR>`<value>` (12 or 17 characters) = use beacon given the MAC interpreted as a string `AABBCCDDEEFF` (also valid: `aa:BB:cc:dd:EE:FF`) MAC of `00:00:00:00:00:00` will stop beacon x
315+
MI32Blockx <a id="mi32block"></a>| Ignore Xiaomi sensors using the (fixed) MAC-address<BR>x=1 - show block list<BR>x=0 - delete block list<BR> x=1 + MAC-address - add MAC to to be blocked to the block list<BR>x=0 + MAC-address - remove MAC to to be blocked to the block list<BR>`<value>` (12 or 17 characters) = MAC interpreted as a string `AABBCCDDEEFF` (also valid: `aa:BB:cc:dd:EE:FF`)
316+
MI32Optionx 0/1<a id="mi32option"></a>| Set driver options at runtime<BR> x=0 - 0 -> sends only recently received sensor data, 1 -> aggregates all recent sensors data types<BR>x=1 - 0 -> shows full sensor data at TELEPERIOD, 1 -> shows no sensor data at TELEPERIOD<BR>x=2 - 0 -> sensor data only at TELEPERIOD (default and "usual" Tasmota style), 1 -> direct bridging of BLE-data to mqtt-messages
321317

322318
!!! tip
323319
If you really want to read battery for LYWSD02, Flora and CGD1, consider doing it once a day with a RULE:

0 commit comments

Comments
 (0)