Is There A Building REST Handler Tutorial?


#1

I am new here. I have searched the forums for this topic and found a few topics that come close, but, they focus on SmartApps, not Hanlders.

I have a Kohler DTV+ shower system, and I have (mostly) reverse engineered the API to drive it (I spoke with Kohler and they are not publishing the API… :frowning: ), and would like to create a handler for it.

Is there a tutorial on creating http / rest based handlers?

Thanks in advance for any help.


(John S) #2

In the forum: This tutorial
And in the documentation, this one


#3

Thanks for the lightning response, @schettj.

These are both for SmartApps. Have you seen anything similar for developing Device Handlers?

Thanks again.


(Jody) #4

@Jim there are some references to device handlers having the ability to have an endpoint on github. Can you clarify this? @pstuart did you ever find anything else about this?


(John S) #5

[quote=“accguy, post:3, topic:20439”]
Have you seen anything similar for developing Device Handlers?
[/quote]Not really, no. Everything I’ve seen seems to suggest only smart apps have rest/oauth support - but there is nothing preventing you from driving a device from a smart app’s rest interface.


(Patrick Stuart [@pstuart]) #6

Nope, haven’t heard a thing.


#7

Thanks everyone for the responses, and looking into this issue.

For now, I think the answer is that we do not have REST Handler development framework, but, REST SmarApps are possible and will work until we do (if we ever do).

Thanks again!

<
/thread>


(Kevin Tierney) #8

Are you looking for a device handler that exposes a REST endpoint for other apps/systems to use, or a building a device handler to control a device that has a REST api?

If you are trying to do the second, take a look at this
http://docs.smartthings.com/en/latest/cloud-and-lan-connected-device-types-developers-guide/index.html


(Ron Natalie) #9

Hey, have you progressed at all? I’m interested in interfacing to the DTV+ as well.


#10

Would also love to see some example code for creating a device handler for “web” devices. I have a sensor that’s web enabled and posting data to beebotte. I would love to grab that data via a REST call and have the values displayed as a device in smartthings. Right now I can get by with using this: