diff --git a/components/sensor/images/xiaomi_cgdk2.jpg b/components/sensor/images/xiaomi_cgdk2.jpg new file mode 100644 index 000000000..42d6546cd Binary files /dev/null and b/components/sensor/images/xiaomi_cgdk2.jpg differ diff --git a/components/sensor/xiaomi_ble.rst b/components/sensor/xiaomi_ble.rst index 0a02ba543..b01a95e0f 100644 --- a/components/sensor/xiaomi_ble.rst +++ b/components/sensor/xiaomi_ble.rst @@ -267,6 +267,31 @@ Configuration example: battery_level: name: "CGD1 Battery Level" +CGDK2 +***** + +Cleargrass (Qingping) Temp & RH Lite, round body, segment LCD, encrypted, broadcasts temperature, humidity and battery status. Requires a bindkey in order to decrypt the received data (see :ref:`obtaining_the_bindkey`). +The measurements are broadcast every 10-15 minutes. + +.. figure:: images/xiaomi_cgdk2.jpg + :align: center + :width: 30.0% + +Configuration example: + +.. code-block:: yaml + + sensor: + - platform: xiaomi_cgdk2 + mac_address: "58:2D:34:11:34:B7" + bindkey: "fe39106baeedb7c801e3d63c4396f97e" + temperature: + name: "CGDK2 Temperature" + humidity: + name: "CGDK2 Humidity" + battery_level: + name: "CGDK2 Battery Level" + JQJCY01YM ********* @@ -422,6 +447,13 @@ If the LYWSD03MMC sensor is operated with the Xiaomi stock firmware, you can use 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. 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. +CGDK2 +***** + +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. + +For this, you load the `application `__ with a `supported browser `__ and connect the device by pressing "Connect". 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 key can be copied directly into the sensor YAML configuration. + Other encrypted devices *********************** @@ -452,5 +484,6 @@ See Also - Xiaomi LYWSD03MMC passive sensor readout ``__ by `@ahpohl `__ - Custom firmware for the Xiaomi Thermometer LYWSD03MMC ``__ - TeLink flasher application ``__ +- TeLink flasher application modified for CGDK2 ``__ - :ghedit:`Edit`