SmartThings Community

Controll Third-Party oath APIs (Tellstick)

I currently working on to integrate my Tellstick Net (http://www.telldus.se/products/tellstick_net) to control it form the ST app. My Tellstick net have 6 devices (switches and doorbells) and 3 sensors (temperature) connected to it and I think it would be awesome if I’m able to control and monitor this devices and sensors like if there where regular z-wave/zigbee/lan devices.

But the question is can ST and SmartApps communicate to a third party’s oath API or any external http request and use this information to add new things?

I have searched in the forum, but all I can find is API for controlling existing ST things.

You can find documentation regarding making standard http requests here: https://graph.api.smartthings.com/ide/doc/smartApp

You can do OAuth authenticaion as well, but takes a bit more work. I think there’s been a healthy discussion here that you can take a look at: http://build.smartthings.com/forums/topic/using-the-smartthings-api/

Thanks @imbrian. Send a standard HTTP request is a good start, I can make a relay server and use that until I have figured out OAuth part to connect to Tellstick API directly.

But how do I add devices and sensors (aka things) to ST with a smartapp?

Here’s an example of a Smart App that’s used to create a device after authenticating with an OAuth endpoint:
https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/smartapps/smartthings/life360-connect.groovy

And this is the device controller that is in use after authentication:
https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/life360-user.groovy

I haven’t dealt with a lot of the innards of this, so I’m probably not going to be able to answer any more than basic questions right now. But hopefully this’ll point you in the right direction.

This looks exactly what I need. Thank you @imbrian!

Sorry for ressurecting this thread @walle but did you ever get to intergrate Telldus with ST?