Execution Time Exceeded Errors

One of my SmartApps is logging the exception “Execution time exceeded 20 app execution seconds” every time it runs.

I think it started on Friday, but I was made aware of it yesterday morning.

The error is happening because the command “device.events(max:50)” is taking between 80ms and 1,800ms to execute.

That means that most SmartApps that periodically check the events of more than 25 devices are probably experiencing the same timeout errors.

1 Like

Do you have Hue?

No, but this is a known problem that SmartThings is looking into.

Just wanted to point out that this problem keeps getting worse every day.

It’s now taking over 4 seconds to retrieve 50 events from a device.