Connecting service managers, device types and smart apps


#1

I’ve read lots of documentation and sample code, and I know I need a service manager and a device type if I want to integrate a cloud connected device.
I.e.
http://docs.smartthings.com/en/latest/cloud-and-lan-connected-device-types-developers-guide/building-cloud-connected-device-types/index.html
However, I couldn’t yet figure out how to specify which service manager the device type connects to, and which device type is used by the smart app.

Please update the online documentation with more details in this area.


(Brian) #2

Meanwhile there are some excellent community created service managers and device types you can study on the board.


#3

You mean create from template? I did that but still can’t see how to connect devices and smart apps.


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #4

The Docs claim that the Ecobee Thermostat is a good example.

If you page through the various published Device Types in the SmartThings.public GitHub, you’re bound to find a simpler example that you can just walk through line by line…

I’ll try to suggest one, but you may enjoy seeing what’s there.


#5

For others who are also confused by the gaps in documentation:
The device type is set in Smart App as second parameter of addChildDevice.

This means that a Smart App can control child devices of different types.