Local execution with new SmartApp architecture?


#1

I’ve been reading through the documentation for writing SmartApps on the new platform, and from what I can tell there is no local execution available for this. Architecturally it will just never be possible, since the app logic itself is hosted outside of ST, so the hub can’t utilise it without a connection to the internet. The idea of the old Groovy stuff is that basic operations could be done locally.

Firstly, have I missed anything here? Secondly, anyone know if there are plans to let the two concepts (old Groovy method and new self-hosted method) coexist going forward? What I like about the former is that you can give non-technical users apps to do very simple things (think Smart Lights) that will work even if the net goes down.

The ability to self-host brings a ton of additional flexibility, but losing this feels like a major drawback.

Thoughts?


#2

In the old system, locally operating groovy was distributed as part of the hub firmware. Literally the only thing that runs locally is the official smart lights feature and a few bits of the official smart home monitor feature. All custom code runs in the smartthings cloud. So there’s not really that much difference as far as customer – written code.

The new system still has official features that can run locally, I believe. But they aren’t giving customers access to the hub processor ( and they never did).


#3

Thanks, that’s very interesting - I thought the groovy you wrote as a SmartApp could run locally.


#4

Nope. :disappointed_relieved: They always said they wanted to do that, but they always said they couldn’t do it yet. They’ve been saying the same thing for three years now.


(www.rboyapps.com - Make your home your butler!) #5

Interestingly one of the ST folks told me recently that they have renewed interest in making custom DTH’s run locally. I hope they were serious about it.


(Steve White) #6

User-supplied local apps & DTH’s are the next evolutionary step. That said, I would be very happy if they just opened up local LAN access to devices and event notifications. I’d love to have a Pi running as an app server with my automations running locally on it, and no cloud dependence except for cloud-connected devices and the mobile app.

Probably will never happen though…


#7

It happened, just not with this company. :wink:


(Steve White) #8

Believe me, I’m looking! :slight_smile: There are still too many unsupported devices right now, but I do believe that platform has a lot of promise.


(Ryan) #9

This is the kind of thing that is going to cause me to scrap my SmartThings hub for Home Assistant on a raspberry pi (or maybe Hubitat). I should have known better than to trust a Samsung owned company. Having the most basic functionality always executed in the cloud is such a drag for these kinds of tasks.