codersaur / SmartThings

Samsung SmartThings SmartApps and Device Handlers
Apache License 2.0
301 stars 540 forks source link

SmartThings Platform Change - no Groovy apps #72

Open AllegrettoA opened 2 years ago

AllegrettoA commented 2 years ago

I have been using this InfluxDB logger app for a long time and find it immensely useful and reliable. With Samsung's upcoming platform change, SmartApps will be shut down on December 31, 2022. Does anyone know of an alternate method for data logging?

andygodber commented 1 year ago

+1 for this. David's Logger has been the mainstay of my Grafana dashboards. @codersaur I know you've not been active for a while - any plans to rewrite for the latest platform?

patrick-GH commented 1 year ago

I was wondering why this wasn't working anymore. Thought it was related to a password change I made. Sad to see another good product died

AllegrettoA commented 1 year ago

While waiting for a more elegant solution to the InfluxDB-logger smartapp, I created a simple Python script which polls devices and write data to InfluxDB, similar to the obsolete groovy app. It can run on many devices including Raspberry PI and does not require a web server. However, it is not event-based so data updates are not real-time (polled instead). It logs data for power, battery, and temperature. Other measurements can be easily added if needed. This Python script has been working well so far. Happy to see my Grafana dashboards updating again.

AllegrettoA commented 1 year ago

If anyone is interested in the Python app, it can be found here: SmartThings-InfluxDB-logger. Feature just added to check health (online/offline) status, data is logged to InfluxDB only when device is online. This makes it easier to detect offline devices on dashboards.