Sensore Qingping TH Lite CGDK2 without battery level

Hi,

I installed Theengs gateway few days ago on a raspberry pi 4 on debian 12.
I owned several Qingping TH Lite modèle CGDK2 sensors. Temperature and Humidity are well puhlished on my MQTT broker but i don’t have any information about battery level.
I’ve waited 2 days before creating this topic in order to see if the problem is not a problem of delay before that battery level was send but i don’t have this information.

The battery attribute is well recognized since it is published in the sensor description in the broker

{"stat_t": "+/+/BTtoMQTT/582D34XXXXXX", "dev_cla": "battery", "unit_of_meas": "%", "state_class": "measurement", "name": "CGDK2-batt", "uniq_id": "582D34XXXXXX-batt", "val_tpl": "{{ value_json.batt | is_defined }}", "device": {"ids": ["582D34XXXXXX"], "cns": [["mac", "582D34XXXXXX"]], "mf": "Qingping", "mdl": "CGDK2", "name": "TH Lite-XXXXXX", "via_device": "TheengsGateway"}}

and the battery is described as managed on the compatible device list https://decoder.theengs.io/devices/CGDK2.html

So, why there’s no battery report for my sensors ?

Regards

Hello,

The stock firmware does not have the battery level.
If you want the battery, you need to update the device with ATC or PVVX firmware.

Regards

Hi,

Thanks for you feedback.
I’m using Jeedom as controller and the plugin BLEA.
I can retrieve the battery level information on Jeedom and i’ve never updated the firmware with another firmware so why i should have to change the firmware ?
It seems that battery info is available to be decoded.

It’s a particularity related with Theengs Decoder that need to apply a specific firmware ?

Regards

Hello,

You should change the firmware if you want to retrieve the battery data with Theengs.

Alternatively, if you know how to decode the battery from the BLE advertisements feel free to submit a Pull Request to the Theengs Decoder repository.

I suspect that this device requires a connection to retrieve the battery data and this is not yet supported by Theengs Gateway.

Regards