[RELEASE] Tuya Leak Sensor

This is a device handler for the Tuya Leak Sensor and any other white label unit sold under various brand names. Has the single CR2032 battery.


My testing was only with the TS0207, so some feedback if others have similar devices would be great.


  • Works with Smart Home Monitor as a leak sensor
  • SmartThings doesn’t mark it OFFLINE as the default handler does
  • Battery results are taken from the device for both voltage and percentage.
  • No parameters (none necessary, the device can’t accept any.)

Hi. Thank you for making your code available for all of us to try!
I have tried to use your Device Handler code to get my Zigbee Tuya (Meian/Aubess) SW02 Leak sensor working with Smartthings. Unfortunately it does not work with my device. Do you have advice for me on how to get this working please?

  • application: 41
  • endpointId: 01
  • manufacturer: _TZ3000_kyb656no
  • model: TS0207
  • zigbeeNodeType: SLEEPY_END_DEVICE

Thanks again!

your a legend . Thank you

1 Like

Hi, does your code fit this sensor as well?
I set it up, it works very well. The problem is that after 6 to 7 hours it becomes offline