SmartThings Community

Water leak sensor with alexa routine?

(Jamie Ashby) #21

Doh! No wonder i couldn’t get it working. I was using the wrong device handler all along.

It now works a treat. Thanks alot guys.

(Phillip) #22

interesting topic. I’m having trouble with trying to add the dth. should I copy the whole code and then click the from code tab in the IDE. because when I do that and click create, I get an error message saying something about error on line 36


There are almost no explanatory comments in the script. Besides copying and pasting it into the device handler what else needs to be done?


The following FAQ explains how to use custom code in smartthings. It should give you all the details that you need.