![]() ![]() No need for bind_key in this case, you can just add the sensors to your ESPHome config as described above. Note that with pvvx default settings advertisment is set to Custom with no encryption. Follow the instructions on the site using Telink Flasher - best results with a Bluetooth-enabled Android phone. The custom firmware allows you to change several settings of the device, including the smiley and the advertising interval. The accompanying video shows how to wirelessly flash a LYWSD03MMC, or how to obtain the bind key of the stock firmware (watch till around 13:10). The easiest method (confirmed to work for LYWSD03MMC) is to use the Telink flasher method. The key can be copied directly into the sensor YAML configuration. After the connection is established, you press the “Do Activation” button and the new key will be shown in the “Mi Bind Key” field. The method to obtain a new bind key for the CGDK2 sensor is similar to the method for the LYWSD03MMC sensor, except a modified version of the flasher application is used.įor this, you load the application with a supported browser and connect the device by pressing “Connect”. To use the sensor again with the Xiaomi Mi Home app, the device needs to be removed and then re-added inside the Mi Home app. The new bind key will work with ESPHome, but the Mi Home app will not recognise the sensor anymore once the device has been activated by the TeLink flasher application. ![]() For this, you load the flasher webpage with a supported browser and connect the device by pressing “Connect”. If the LYWSD03MMC or MHO-C401 sensor is operated with the Xiaomi stock firmware, you can use the TeLink flasher application to easily generate a new bind key and upload the key to the device without the need to flash a new firmware (see figure). The xiaomi_ble sensor component is not able to automatically generate a bindkey so other workarounds are necessary. To set up an encrypted device such as the LYWSD03MMC (with Xiaomi stock firmware) and CGD1, you first need to obtain the bind key. Once the device has been found, copy the address A4:C1:38:4E:16:78 into a new platform entry like shown in the example configurations. It can sometimes take some time for the first BLE broadcast to be received. “pvvx” custom advertisement (no bindkey required, only PVVX firmware)Ĭonfiguration example for Xiaomi stock firmware or ATC MiThermometer firmware set to “Mi Like” advertisement:įound device A4:C1:38:4E:16:78 RSSI=-78 Address Type : PUBLIC Name : 'LYWSD03MMC' “Custom” advertisement (no bindkey required) “Mi Like” advertisement (dummy bindkey required) Xiaomi stock firmware (requires a bindkey in order to decrypt the received data, see Obtaining the Bindkey)ĭevice flashed with PVVX MiThermometer custom firmwareĭevice flashed with ATC MiThermometer custom firmware There are the following possibilities to operate this sensor: Hygro thermometer, small square body, segment LCD, encrypted, broadcasts temperature, humidity and battery status. Sensor : - platform : xiaomi_cgg1 mac_address : "7A:80:8E:19:36:BA" temperature : name : "CGG1 Temperature" humidity : name : "CGG1 Humidity" battery_level : name : "CGG1 Battery Level" - platform : xiaomi_cgg1 mac_address : "7A:80:8E:28:39:CD" bindkey : "00112233445566778899aabbccddeeff" temperature : name : "CGG1 (New) Temperature" humidity : name : "CGG1 (New) Humidity" LYWSD03MMC ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |