I just bought a samsung smartthings button and I need to create an app to send a webrequest whenever the button is pressed.
I already started to write the code, but it is not working so far.
Can you tell me what is wrong and how to make it work?
What exactly isn’t working? Are you getting errors when installing/running? Or is your code not performing as intended? What is showing in your IDE log?
Hi Philh30, thanks for answering.
The goal of the app to notify a web server that the button was pressed.
This is not happening.
I checked the log and there was an error on line 59, I corrected it by removing variables on last lines log.debug and sendPush.
Now the log looks like this:
For whoever needs a code to run according to a Samsung Button press:
evt.value is the kind of press, can be: pushed, held or double
evt.jsonData.buttonNumber is the button number
Hello! I’m looking for a device handler for the Samsung Smartthings Button. The code posted here gives me multiple compiling errors. Would someone please point me to a working device handler?