I’m doing polling over HTTP (n seconds > 15) in a SmartApp via the runIn(pollInterval, checkMethod) after every check. I’ve made sure the runIn call is being done even though the HTTP call might fail.
But it seems the scheduling goes missing every once in a while. I don’t know if that’s because of an aborted run or the ST cloud or it clearing all scheduled events? The SmartApp is “live” again after I go in and edit the settings (since I do a runIn scheduling on config changes).
Is there some better way to do the scheduling to get it to persist, or is this just something we’ll have to live with… I hope not…
This is the code if anyone’s interested: https://github.com/anderssv/smartthings-code/blob/master/smartapps/smartthings-f12-no/verisure.src/verisure.groovy