A Web Services SmartApp exposes endpoints that third parties can make REST calls to. It can then do anything a normal SmartApp can do - get device status, actuate devices, etc. - and send a response back to the calling client.
Correct me if I’m wrong but I think the device status being referred here is the state of an attribute ie. on/off, lock/unlocked etc.
What I want to query for is status related to:
If the device has malfunctioned
If the device is unreachable
The SmartThings Hub has gone offline
Thank you,
1 Like
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
4
The first two items are not yet generally available; but a set of new “Health Check” functions, so far undocumented, are appearing on some devices, so I presume you should stay tuned. SmartThings moves pretty slowly on new features, though, so don’t hold your breath.
As for #3, perhaps lookup what documentation is available of the properties in the Location object (i.e., location.*). Perhaps also “hub Actions” (though those are for initiating actions, rather than receiving status on an offline hub).
(While community members sometimes have answers at our fingertips, we really do prefer that new developers become intimately familiar with the official documentation first.)
As for #3, I’ve already read through Location and Hub documentation and tried out all methods there. Nothing related to hub availability.
As you can see, the items I’m looking for are not currently available in the official documentation that’s why I’ve posted a question here in case I missed out on something.
1 Like
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
6
Thanks, Jemuel.
Be sure to also exhaustively use the Search function and Google… Happy Holidays!