Calling REST APIs for Smartthings sensors


(Amrutha R) #1

hi,

Can anyone suggest me some REST APIs for motion sensor that can fetch whether the motion sensor is connected to the hub or not.

thanks


(Joshua Lyon (SharpTools.io Dashboard)) #2

Have you read about Web Services SmartApps in the SmartThings Docs?
http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/index.html

Edit: I just re-read your post and noticed that you mentioned “if the motion sensor is connected to the hub or not”. What did you mean by this?


(Amrutha R) #3

hi,

For getting the status of the sensor, the link helped. Thanks a lot.
But what i meant was what if the sensor is disconnected or lost, can we track that. So to check whether the sensor is alive or not can we have an API?


(HONGTAT TAN) #4

Not sure whether there is an API, but there is a smartapp.