csstup
(Corey Stup)
November 30, 2021, 8:34am
#1
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.
Features:
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.)
/*
* Tuya Leak Sensor
*
* Sold as:
* "Tuya Water Sensor" (TS0207)
* Blitzwolf BW-IS5 Water Leak Sensor https://www.blitzwolf.com/ZigBee-Water-Leak-Sensor-p-444.html
* RSH-ZigBee-WS01
* Ewelink Wireless Water Detector
* And probably others...
*
* To pair this device, press and hold the button for 5+ seconds.
* While holding, the green light will go out indicating its ready to pair.
* Release the button, the green light should begin to blink indicating its ready to pair.
*
* Pressing the button will send the current leak status as a zone status update.
*
* Every ~250 minutes or so, the device will send a battery report (with voltage and percentage remaining),
* which we consider to be a checkin. The frequency of the battery reports is not queryable or configurable.
*
* Details:
This file has been truncated. show original
3 Likes
RiaanUK
February 19, 2022, 3:38pm
#2
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!
Riaan
your a legend . Thank you
1 Like
mor7280
(Mor Dweck)
June 10, 2022, 12:45pm
#4
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