I’m looking to get the reported activity for a particular device from the Smartthings REST API (https://smartthings.developer.samsung.com/develop/api-ref/st-api.html#section/Overview)
Purpose: I have a basement ejector pump that likes to sometimes get stuck. I have a shock sensor attached to a pipe that triggers when the pump engages. I’d like to poll the device and know if it hasn’t triggered for a particular period and create an alert so that I know the float switch might be stuck.
As far as I’m concerned, getting the last activity value for a device from the API would be the easiest way for me to apply this solution. However, I don’t see anything in the documentation that will display a device’s Last Activity (like in the IDE).