Laeb
February 10, 2020, 2:29am
1
I can’t find how to retrieve the history of events from a motion device. This history is shown in the device settings in Smartthings app so i guess that it should be possible. Any idea ?
Terminal
(Mike)
February 10, 2020, 12:51pm
2
You can go to the My devices in the IDE and select device and then select List events towards bottom of page…
Laeb
February 10, 2020, 1:10pm
3
Thank you for the answer. I forgot to say that i want to do that from a lambda function. I found nothing for that in the API.
I"m not really sure what a lambda function is, but I discovered this the other day that might help get you on a path to what you’re after?
This SmartApp will stop working when the Groovy platform is retired
This SmartApp is no longer supported because SmartThings made some changes to the way events are handled which has impacted some users and it will most likely completely stop working in the near future.
There’s another SmartApp called something like Google Sheets Logger that subscribes to the events instead of retrieving them from the device history so it most likely won’t have the same issues as this one.
Simple Event Logger is a fully customizable SmartApp that allows you to accurately log all device activity to a Google Sheets Spreadsheet. Each event is stored on a separate row so that you have their exact time and details.
Google Sheets has an easy to use filter feature which allows you to do things like view all e…
ogiewon
February 10, 2020, 4:09pm
5
I am guessing the original poster is referring to Amazon’s AWS Lambda platform.
Not that this helps the O.P. much…
2 Likes
GSzabados
(Gabor Szabados)
February 10, 2020, 4:30pm
6
I thought that some else just asked recently the same question, but I cannot find the post and the answer.
So, @jody.albritton , @Brad_ST is there a way to access the device history through the REST API?
1 Like
Laeb
February 11, 2020, 11:46pm
7
Yes, it’s about an Amazon AWS Lambda function. Using the rest API, i want to be able to retrieve the last events that a motion device has detected. Is that possible ?
Laeb
February 11, 2020, 11:56pm
8
Thank you ! I’ll look in the code.
1 Like