You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This key and the corresponding MAC of the sensor can be injected with the NRFKEY-command (or NRFMJYD2S). It is probably a good idea to save the whole config as RULE like that:
236
238
237
-
```rule1 on System#Init do backlog NRFkey 00112233445566778899AABBCCDDEEFF112233445566; NRFkey 00112233445566778899AABBCCDDEEFF112233445566; NRFPage 6; NRFUse 0; NRFUse 4 endon```
239
+
```haskell
240
+
rule1 on System#Initdo backlog NRFkey00112233445566778899AABBCCDDEEFF112233445566; NRFkey00112233445566778899AABBCCDDEEFF112233445566; NRFPage6; NRFUse0; NRFUse4 endon
241
+
```
238
242
(key for two sensors, 6 sensors per page in the WebUI, turn off all sensors, turn on LYWS03)
239
243
240
244
LYWSD03MMC sends encrypted sensor data every 10 minutes. As there are no confirmed reports about correct battery presentation of the sensor (always shows 99%), this function is currently not supported.
@@ -246,9 +250,9 @@ A simplified presence dection will scan for regular BLE advertisements of a give
246
250
If the driver receives a packet from the "beacon" a counter will be (re-)started with an increment every second. This timer is published in the TELE-message, presented in the webUI and processed as a RULE.
247
251
The stability of regular readings will be strongly influenced by the local environment (many BLE-devices nearby or general noise in the 2.4-GHz-band).
248
252
249
-
## BLE Sensors using built-in Bluetooth on the ESP32
253
+
## BLE Sensors on ESP using built-in Bluetooth
250
254
251
-
You must [compile your build](Compile-your-build) for the ESP32. Change the following to `my_user_config.h`:
255
+
You must [compile your build](Compile-your-build) for the ESP32. Change the following to `user_config_override.h`:
252
256
253
257
```
254
258
#ifdef ESP32
@@ -257,7 +261,8 @@ You must [compile your build](Compile-your-build) for the ESP32. Change the foll
257
261
```
258
262
259
263
To turn on/off support for decyrption, change the following in the driver code:
260
-
```
264
+
265
+
```haskell
261
266
#define USE_MI_DECRYPTION
262
267
```
263
268
Without encryption support the driver will read data from found LYWSD03MMC via connection. This will increase power consumption of the sensor, but no "bind_key" is needed.
@@ -291,7 +296,6 @@ This will update every day at 00:30 AM.
0 commit comments