I have a SmartThings V2 hub and a number of sensors including multipurpose and waterless ST sensors. I want to extract the records of the temperature and place into a CSV file (or for that matter any other usable format, to produce graphs and records. I have no idea where to start and would appreciate direction and advice on resources to read.
Similarly I would like to get some context on the move away from Grovey to Lua as I do not understand why this is being done. Again resources would be much welcomed.]
Probably the best place to start on the move away from Groovy is the community FAQ on edge Drivers. It also includes links to all of the official announcements if you just want to read those.
But the short answer is that the old architecture depended on a cloud that smartthings provided, and that had reliability issues. (It probably also ended up being too expensive for Samsung as the number of smartthings customers grew, but they haven’t said that officially.)
Although the new architecture is still largely cloudbased, a lot more stuff can run locally on your own SmartThings/Aeotec hub if you have one. But because they are making this change with the existing hardware, and those are actually pretty limited devices, they switched from Groovy to Lua because Lua is a more “lightweight” language, and would run more efficiently on the hub itself. Lua is used for a lot of mobile gaming, for example, for just this reason. It’s also been used for years by some of smartthings’ competitors in the home automation space, including Vera.
Anyway, that part specifically was discussed in one of the announcements.
Another vote to checkout ConstantGraph. You may find it does exactly what you want, but if not you can also export your data to a csv file. Note that there are limitations to how much history is retained and your ability to export raw vs aggregated (averaged) data beyond 30 days, varying by subscription type.