Due to my very low level of editing DTHs and creating my own, I am hoping this community could assist me.
I am using my existing smoke/co detectors in the home with a relay/and dry contact sensor (Aeotec by Aeon Labs ZW097-A Dry Contact Sensor Gen5) and a custom DTH that allows the sensor to report like a Smoke detector.
It works great except for one issue, the contact sensor sleeps and causes the New Smartthings App to report it as offline throughout the day. Did not have this issue in the original ST app. This obviously is not only a nuisance, but impacts my ability to effectively use it as part of the Security features in Smartthings as it will throw errors when arming the alarm.
Can anyone provide edits to the DTH (or offer a alternative version) that would resolve this? I am thinking I need to find a way to change the DTH to not care about the device going to sleep (may not be possible as a Smoke device?) or to create a separate Virtual Smoke DTH that my current one can toggle, which would eliminate the sleep issue. I thought something similar to the Alexa simulated switch DTH that couples a switch and contact sensor as an intermediary, but I am not skilled in this area to make those changes.
Any advice? I have pasted the DTH from @vseven below that I am using.