SmartThings IDoT Service Documentation
- cloud connected devices
- identity of things
- bring your own identity
How can an IoT device be attached to a user?
How can any IoT device be attached to any user?
How can any IoT device be shared with multiple users?
Can an IoT device be treated as a "user agent" posting events on behalf of user?
So, all "instances" of an IoT device have same device ID (do not need serial numbers to identify individual device instances). An instance of a device gets associated with a user as part of "on boarding" and gets an access token that uniquely identifies this association.
From that point onwards, all user -- device interactions use the device's access token as reference (or API key).
There will be separate access token for actual "app" (e.g. SmartApp) that will need to be authorized by the user to work with the device that has been associated with the user.
- project ID :
e2ecd93f-aada-4009-8be1-4fa072c97749
- SmartThings IDoT Service backend app ID :
b36d560e-8149-42fa-bb41-0d24e1964bb6 - SmartThings IDoT Client client app ID :
7204ae71-c0aa-446a-ae12-460afba58bf4
Define custom roles for device control:
| ROLE | Description |
|---|---|
OPERATION |
user can onboard, control and view a device |
PATIENT |
user can control and view a device |
VIEWER |
user can only read device status |
For the purpose of hackathon, we'll rely on explicit user invitation with fixed roles for demo. In real-world implementation, the owner of a device will "share" the device with friend's identity and specify actions allowed on that "share".
- invite a user with custom role
OPERATIONwho can onboard devices - invite 2 users with custom role
PATIENTwho can control devices - invite another user with custom role
VIEWERwho can only view status of devices
