# New user Problem: Did my handler locked my Aqara Thermometer out forever?

**URL:** <https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651>\
**Category:** Writing Device Types\
**Created:** [October 11, 2022, 3:53am UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651 "2022-10-11T03:53:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotchgambit](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/scotchgambit/32/164473_2.png) [@scotchgambit](https://community.smartthings.com/u/scotchgambit)\
**Post date:** [October 11, 2022, 3:53am UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/1 "2022-10-11T03:53:27Z")

</div>

Hi community,  
This is my first post. I have started with HA and SmartThings 2 days ago.

I have 3 Aqara Thermometer and Humidity sensor (Model: WSDCGQ11LM).  
It was not initially recognized by my Aeotec hub and SmartThings app in my region. But then, I downloaded one handler from OrangeBucket and it was working well.

But I wanted to learn more and have more reporting options, so I read some material and tried to implement some codes in one of the 3 devices. Then, I was testing with “zigbee.configureReporting” and added the following configure method:

> def configure() {  
> log.debug “Configuring the Handler”
> 
> ```
> //Set the check-in interval:
> 
> ```
> 
> sendEvent(name: “checkInterval”, value: 2 \* 60 \* 60 + 1 \* 60, displayed: false, data: [protocol: “zigbee”, hubHardwareId: device.hub.hardwareID])  
> log.info “Sending ZigBee Configuration Commands to Thermometer 2”  
> zigbee.configureReporting(0x0402, 0x0000, 0x29, 60, 240, 100)  
> zigbee.configureReporting(0x0405, 0x0000, 0x21, 600, 900, null)  
> zigbee.configureReporting(0x0403, 0x0000, 0x21, 600, 900, null)
> 
> }

And apparently, since then, the live logging does not show ANY message arriving from this test device.  
I was afraid I made a mistake and stopped the device to send reports. And then, it got worse: after hours waiting for a message, the device went OFFLINE.

I try to press the “reset” button on the thermometer, to make it go to pairing mode or to become online/alive again. And nothing. The only thing I noticed is that the “metric” pane of the IDE shows an increasing number of errors of message transmitted to the device (the number of failures is increasing over time).

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/6/c/6c92b0b61cf03b9651160cd8ac4da87e973e59d9.png)

I’m afraid to “delete” the device from the hub and lose it forever: as it is not sending messages often, it may be very hard to pair it again.

Did I lose it forever? Any thing I can do to try to get it back online and reporting? Does removing the battery of the device reset it?

Let me know, and thanks on advance. 🙂

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [October 12, 2022, 4:35pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/2 "2022-10-12T16:35:23Z")

</div>

Tagging @orangebucket

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [October 12, 2022, 10:09pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/3 "2022-10-12T22:09:05Z")

</div>

Hi, @scotchgambit.  
I don’t know if @orangebucket is free to modify this part as he developed the DTH.  
However, there are some samples to configure the reporting for those clusters in the Public Repository ([here](https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/ezex-temp-humidity-sensor.src/ezex-temp-humidity-sensor.groovy#L114)).  
However, it’s **highly important** you consider that we’re currently during the Groovy sunset transition and since Oct 15th you’ll be able to only modify or delete the DTH.  
Here’s the announcement about this:

> [@The End of Groovy Has Arrived](https://community.smartthings.com/t/the-end-of-groovy-has-arrived/246280):
>
> Beginning September 30, 2022, at 00:00 (PST) we will start migrations of Groovy device DTHs as well as SmartLighting and SevereWeather SmartApps, two of our most popular Smartapps built on Groovy. On October 15th 2022 certain functions of the legacy developer IDE, such as the creation of new DTH’s, Smartapps, and debugging tools will be removed from the SmartThings platform and will no longer be supported. After migrations are complete, this means that devices and automations previously using Groovy will now exclusively operate with our latest hub and cloud technology. Recognizing trends within the smart home industry, SmartThings has been working diligently to evolve our platform into a modern REST API framework. Lua-based Edge drivers are a major step, which is being followed quickly w…

---

<div class="post-metadata">

**Author:** ![orangebucket](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/orangebucket/32/81590_2.png) [@orangebucket](https://community.smartthings.com/u/orangebucket)\
**Post date:** [October 12, 2022, 11:05pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/4 "2022-10-12T23:05:01Z")

</div>

> [@nayelyz](#):
>
> I don’t know if @orangebucket is free to modify this part as he developed the DTH.

I’m flattered you might think I am capable of such a thing but it was largely a cosmetic job on the ‘bspranger’ handler with some minor technical tweaks to make it behave in the ‘new’ environment.

The Zigbee bits are inherited. At the time my now extremely superficial understanding of Zigbee was even more limited , and Lumi did rather plough their own furrow with their interpretation of it so it wasn’t a place to put it to the test.

Nearly all my Aqara sensors went in the bin and I made a point of watching the bin man empty it into the back of the lorry and turn on the crusher. I do have single samples of the sensors left but I also have several hammers to hit them with.

---

<div class="post-metadata">

**Author:** ![milandjurovic71](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/milandjurovic71/32/208047_2.png) [@milandjurovic71](https://community.smartthings.com/u/milandjurovic71)\
**Post date:** [October 12, 2022, 11:30pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/5 "2022-10-12T23:30:19Z")

</div>

That sensor is supported by many drivers for over a year. I have multiple sensors on different drivers. One of them is @Mariano_Colmenarejo driver that I am using as thermostat

> [@(EDGE Driver-Mc): Zigbee Temp Sensor and Child Thermostat Mc, Zigbee Temp Sensor with Thermostat Mc](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137):
>
> (NEW RELEASE): Edge Driver Zigbee TempSensor and Thermostat Mc: [Version 2 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/14)[Version 2.2 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/50)[Version 3 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/66)[Version 3.5 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/87)[Version 4 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/152)[Version 4.5 Thermostat Sensors Groups Control](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/425) Versions of Zigbee Temp Humidity Sensor Mc driver [Version 2.5 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/84)[version 3 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/141)[Version 4 in this link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/159)[Version 5 in this Link](https://community.smartthings.com/t/beta-edge-driver-zigbee-temp-sensor-and-thermostat-mc/234137/188) This new Edge Driver allows you to convert a sensor that has the capability of Temperature into a fully programmable Thermostat that runs locally and usable with Routines and Scenes. My thanks to @milandjurovic71 for his debugging work and for his always useful ideas and suggestions that it do possible build his idea of a fully operational virtual thermostat on the same driver. Thanks also to @TAustin for help…

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [October 13, 2022, 12:53am UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/6 "2022-10-13T00:53:09Z")

</div>

To respond to a few specific questions:

1. nothing you can do with a device type handler can permanently damage your device, but you might have to factory reset it.

2. you have to check the user guide for the device to find out exactly how to reset it. Some are reset just by removing the battery and replacing it, but some require that you hold down a little button while the batteries replaced or some other action.

3. are you aware that ALL groovy device type handlers are in the process of being discontinued as SmartThings moves to a new architecture? So most people are not writing anything in Groovy these days.

The replacement are “edge Drivers“ written in the Lua programming language.

This is why @nayelyz gave you the following link.

> [@The End of Groovy Has Arrived](https://community.smartthings.com/t/the-end-of-groovy-has-arrived/246280/):
>
> Beginning September 30, 2022, at 00:00 (PST) we will start migrations of Groovy device DTHs as well as SmartLighting and SevereWeather SmartApps, two of our most popular Smartapps built on Groovy. On October 15th 2022 certain functions of the legacy developer IDE, such as the creation of new DTH’s, Smartapps, and debugging tools will be removed from the SmartThings platform and will no longer be supported. After migrations are complete, this means that devices and automations previously using Groovy will now exclusively operate with our latest hub and cloud technology. Recognizing trends within the smart home industry, SmartThings has been working diligently to evolve our platform into a modern REST API framework. Lua-based Edge drivers are a major step, which is being followed quickly w…

If you’d like more details about edge, see the community FAQ:

[FAQ: I have no idea what Edge is. Is that a new developer tool? (2022)](https://community.smartthings.com/t/faq-i-have-no-idea-what-edge-is-is-that-a-new-developer-tool-2022/237775)

1. as @milandjurovic71 mentioned, there are a couple of edge drivers already available that should work with your device. So that’s very good news. 🎉 You will need to get it reset. And then subscribe to the edge driver. Other people can give you the details of that process.

2. Smartthings has been having some platform issues over the last week or so and that might have introduced some additional difficulties for you. It’s often a good idea to check the status page. They don’t post all the issues there, but usually the major ones will be listed. At least that way you’ll know if it’s worth working on before they get it fixed.

> **[SmartThings Status](https://status.smartthings.com/)**
>
> Welcome to SmartThings's home for real-time and historical data on system performance.

1. Aqara Devices are often difficult to pair to a smartthings hub. One community member has written a list of tips and tricks that might help. (The topic title is a clickable link.)

> [@Pairing Aqara to Smartthings Edge (TIPS AND TRICKS)](https://community.smartthings.com/t/pairing-aqara-to-smartthings-edge-tips-and-tricks/249250):
>
> I know from reading various posts people run into challenges getting Aqara sensors paired to Smartthings via Edge drivers. Having done a few deployments of this recently I have a method that works every time for me so thought I would place useful tips here hoping they help someone else also. I realize that not everyone has the same setup or the same environment but these tips should be fairly universal. Overall I have 17 Aqara devices deployed. You can see below, the bulk are contact sensors but I also have vibration, temp humidity, wireless button, motion sensor , water leak and even an Aqara smart plug. 4 of those devices route through Ikea Tradfri Control Outlets. These sensors were physically located at the edge of the Zigbee network so they would often drop registra…

1. both smartthings and Aqara have announced that they will have at least some support for Matter, the new industry standard for communicating between devices of different brands. Sometime in the next six months or so it should become way easier to use aqara devices with smartthings. Instead of pairing the Aqara devices to a smartthings hub, A new option will be to pair them to their own hub (easy) and then bring that hub into your smartthings account, which should also be an easy process. The hub will bring many of its devices with it. So if everything goes as planned, you will end up with a local, reliable, easy setup. No custom code required. Plus you will be able to get regular firmware updates for your Aqara devices, something which is quite difficult to do now.

Of course that’s all if everything goes as planned and we don’t have an exact timeline. But I just thought it might be nice to know that within a year or so this entire process should be much much easier.

———-  
Anyway, I hope that answers some of your specific questions from your first post, while a lot of the information you got from other people in the thread should be very helpful in other regards.

Welcome to the community! 🕶

---

<div class="post-metadata">

**Author:** ![GSzabados](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/gszabados/32/73805_2.png) [@GSzabados](https://community.smartthings.com/u/GSzabados)\
**Post date:** [October 13, 2022, 6:18am UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/7 "2022-10-13T06:18:01Z")

</div>

> [@scotchgambit](#):
>
> zigbee.configureReporting

Aqara thermometers cannot be configured. They report when they report, and actually they do check in every 2 hours AFAIK.

---

<div class="post-metadata">

**Author:** ![scotchgambit](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/scotchgambit/32/164473_2.png) [@scotchgambit](https://community.smartthings.com/u/scotchgambit)\
**Post date:** [October 14, 2022, 7:53pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/8 "2022-10-14T19:53:28Z")

</div>

I don’t know what is the etiquette here in the forum, I got so many responses and I don’t know if I reply one by one or all at once.

Anyhow, at a first glance it really feels like this is a community that wants to embrace newbies. I’m glad to see.

Thank you for all the answers!!  
In JDRoberts specifically: I will try to reset my device.  
I’m a bit frustrated that my first two days of “study” were completely lost as groovy will not be so useful in the future. I will try to adapt, let’s see what edge is about and if I can learn how to build/code my own things there. I hope so. 🙂 But let’s not rush. First I’ll read the material you and @nayelyz have linked.

---

<div class="post-metadata">

**Author:** ![scotchgambit](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/scotchgambit/32/164473_2.png) [@scotchgambit](https://community.smartthings.com/u/scotchgambit)\
**Post date:** [October 14, 2022, 7:54pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/9 "2022-10-14T19:54:34Z")

</div>

Thank you for the information. That’s quite disappointing, actually. 😕

Do you know any other temperature/humidity sensor that whose reports can be configured?

---

<div class="post-metadata">

**Author:** ![GSzabados](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/gszabados/32/73805_2.png) [@GSzabados](https://community.smartthings.com/u/GSzabados)\
**Post date:** [October 14, 2022, 8:08pm UTC](https://community.smartthings.com/t/new-user-problem-did-my-handler-locked-my-aqara-thermometer-out-forever/249651/10 "2022-10-14T20:08:57Z")

</div>

> [@scotchgambit](#):
>
> Do you know any other temperature/humidity sensor that whose reports can be configured?

Literally any other Zigbee temperature sensor.

@JDRoberts can advise you what options you might have nowadays. Probably there are some good deals on Amazon as well.
