I ran in to the 20s execution time limit. I have a simple task that should turn on and off my espresso machine with appropriate pauses in between. You can see here: (for people who own a espresso machine that they need to clean every once in a while, this is veryhandy!)
Obviously because I am pausing for many seconds in between each backflush, this task only executes twice and then is killed by the SmartThings device. Is there anyway around this? Do you know if there is a way for my code above to schedule a few ON/OFF events and then delete the schedule after the backflush is done for 7-8 times?
(www.rboyapps.com - Making SmartThings Easy!)
pause(msec) is implemented by smartthings. It acts like sleep() call in linux for example. I could not file pause()'s api documentation, but it seems to work (some other threads also make reference to it). I think I might have to look in to scheduling here:
I have not written any ST apps so pardon the naivety, but I was thinking this…
Local vs cloud
First, just to get this out-of-the-way, at the present time no custom code runs locally, which means nothing with core or webcore runs locally. In fact, the only things which do run locally are smartlighting (and then only if all of the individual device type handler is being used are also running locally) and a few bits of smart home monitor. That’s it. Not even routines run locally.
However, that said, some people have found that cloud-based operations run faster than local operations. I know that doesn’t make any sense, but has been reported by more than one person, so it’s just something you need to try and see for yourself.
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)