This SmartThings device handler is meant for the leakSmart Sensor.
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My Device Handlers" section in the navigation bar.
- Click on "Settings".
- Click "Add New Repository".
- Enter "ericvitale" as the namespace.
- Enter "ST-leakSmart-Sensor" as the repository.
- Hit "Save".
- Select "Update from Repo" and select "ST-leakSmart-Sensor".
- Select "leaksmart-sensor.groovy".
- Check "Publish" and hit "Execute".
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My Device Handlers" section in the navigation bar.
- On your Device Handlers page, click on the "+ Create New Device Handler" button on the right.
- On the "New Device Handler" page, Select the Tab "From Code" , Copy the "leaksmart-sensor.groovy" source code from GitHub and paste it into the IDE editor window.
- Click the blue "Create" button at the bottom of the page. An IDE editor window containing device handler template should now open.
- Click the blue "Save" button above the editor window.
- Click the "Publish" button next to it and select "For Me". You have now self-published your Device Handler.
This device is a bit interesting to get it to pair. I've seen a few scenarios happen. Here is what I generally do:
- Get your ST app into pairing mode.
- Open the battery cover and remove one of the batteries.
- Hold down the button insert the battery. Immediatly unpress the button and you should get a long beep (1 second).
- Wait a second and then long press the button 2-3 seconds, after that it should start beeping and be discovered by ST. If it is not discovered by ST, try again. If still not discovered, press the button a few times quickly.
- ST should find it quickly once in pairing mode. If after you setup the device on ST it is still beeping, something went wrong. Delete the device from ST and reset it (hold the button for 5+ seconds, sometimes you have to do this more than once) and start over.
There is an optional setting in the device configuration. If you are having issues getting it to report wet/dry, try enabling compatibility mode.
This code is by no means 100% all my work. This device handler is the work of @dhelm2, @John_Luikart, & @krlaframboise.