[OBSOLETE] Log events to Google Sheets [see post /36719/154 for Github repo and v1.1]

Hi, I tried for many hours today to work through all the steps, created at GitHub account, etc but after many times of starting from scratch at google sheets, I still cannot even get the test url to insert a row into my sheet. " (Optional): Test out your new webapp, add this to the end of the URL from step 6: `?Temp1=15&Temp2=30"
i did get the message returned "The script completed but did not return anything. " however nothing appears in my google sheet.
Two questions:

  1. when the how-to describes "Open script: Click Tools → Script Editor. " I only have within the sheets menu list a “Extensions\Apps Script” which brings up a script editor. Is this the right editor?
  2. When the script is ready I then click on the blue “Deploy” button top right of screen. It doesn’t offer me the webapp to “Anyone, even anonymous”. I can select webapp and I execute as “Me” but my security who has access options are “Only myself” “Anyone with a google account” “Anyone”

I select “Anyone”

Any advice on how to get the test url to insert a row of test data into my google sheet?
I called the sheet filename “Logging” which shouldn’t matter, and left the default sheet name as Sheet1.

Thanks!

I have this running well, but I get duplicate times occasionally. I am using it with my Aeon Energy monitor. The “Energy” and "Power values update, only the time values get duplicated. Is anyone else having this issue?

Hi all. I am new to all this so I need some help. As a Parkinson sufferer, I want to record my restless night time actions, number of times awake or getting up. I have sensors working through Smartthings as well as a Aqara mini switch which I activate when I awake in the night. I want to produce a graph to see if there is an establish pattern to discuss with my Neurologist. Can anyone talk me through the process?
Many thanks
D

I’m assuming the Google Sheets Logging SmartApp will stop working when Groovy is turned off. Any ideas around a replacement? Is there a way to get each event to call a URL? I could then capture the URL parameters in a web service and log it to a Sheet. Thanks.

Like all other SmartApps, this will cease functioning on SmartThings soon.

I use this exact same app on my Hubitat hub (where it runs locally, under my control).

1 Like

Has anyone found a replacement for this?

Not that I’ve heard. Sadly, all my data stops cold on January 11. How sad.

If anyone wants to re-code it and sees this, send me a PM. I have a few ideas for improving the CSchwer log. In particular, the timestamps have issues.

Constantgraph is a full featured logging and plotting software that ties into ST.

I continue to run this, just not on SmartThings.

(e.g., I replaced something, just not this code)

Thanks for that @HomeAgain, I had not heard of ConstantGraph.

In theory it looks nice. But it doesn’t look worth it to me.

By now I have 7 years of data, every 10 minutes, for about 60 sensors. Looks like ConstantGraph can’t touch that, not even with it’s highest paid tier. (Summarizing “Daily data for 5 years” would only allow for once a day, not every 10 minutes, and it’s not clear how many sensors it can handle.)

Their homepage looks wonky and practically broken on Windows Chrome, which is a red flag relative to how smooth it is to use and how well and long it’ll be supported.

I wonder why these companies don’t hook into an individual’s storage space, like the CShwer log did with Google Sheets. It would make things much less expensive for them, and users would own and be responsible for their own data. If this makes deep analysis slower (because it would take many minutes to analyze a million datapoints fetching external data), I guess I can live with that as the price one has to pay.

When I set up my big smart home network in 2016 (about two dozen devices and 100 sensors in all), I had dreams of being able to chart, e.g., temperatures and humidity inside and outside my house relative to HVAC usage and the weather in general. So I could answer questions like, How much energy do I use depending on the weather in summer and winter. How much does a cloudy day versus a sunny day matter?

But in retrospect, this was incredibly naive at many levels. No consumer-grade smart home software comes anywhere close to doing this. In fact, all smart home apps are practically made for children. They have big fat displays for single values at one point in time (right now), instead of dense tables of values for numerous devices that can be graphed over time. Add onto that a never ending stream of various ways that even their very basic functionality doesn’t always work. Everything from very poor notifications relative to battery levels, to what it does when the hub or internet or even power goes out, plus add in the various ways that hubs update (and things go out for a while until you fix something) plus changing security and changing back ends over time (like, the loss of CSchwer functionality now). Also I haven’t seen a single one that includes a way to estimate values across the many data gaps in time that are definitely going to happen. No smart home company even has the faintest mention (like in their ads) of how they address data gaps, when they really should if they’re serious about data collection. They just aren’t.

I used to think SmartThings was the smart person’s choice, because they let the community develop apps to supplement it. But now I see that this is more like how many companies have fobbed off actual depth and/or support to community forums, where you have to search for and ask questions, instead of actually being able to talk to someone responsible and knowledgable at the company itself. Dev support is nice, but if the core product itself isn’t great or well supported - and keeps changing, usually just sideways in ways that don’t really improve it but do cause headaches - well, there you go.

In Samsung’s defense, their model of selling a hub once (relatively cheaply) and getting no more income per user, just isn’t sustainable for producing an extremely deep and wide end-user experience. It just isn’t. Nor is anything short of a relatively expensive smart home subscription, that I imagine few would go for. Really the model here is more like (chemical) industrial facilities that have very deep process monitoring. But of course, they’re astronomically too expensive for simple end users.

It also seems to me that one would need something more like AI to successfully take thousands or millions of an individual’s datapoints (if we’re talking multiple years, multiple sensors, every 10 minutes or whatever) and combining it into something useful and wholistic. It would have to be smart enough to handle gaps in data as well as other vagaries, like moving a particular sensor from time to time. Even down to things like how, every time I replace the battery on an outdoor sensor, it briefly has indoor readings when it comes back up. Or comparing a particular temperature sensor against a temperature standard, and adjusting it relative to that. (Another digression: Why don’t any of these sensor makers hardly ever even mention whether it used a standard when manufactured, and supply detailed info on how sensitive and accurate they are?) There are many such vagaries in data taken over long periods which have to be addressed to have an accurate overall picture.

Okay, this is all TL;DR, laugh. I’ll stop here.

1 Like