[OBSOLETE] [BETA MILESTONE 1] CoRE (Community's own Rules Engine)

So the piston subscription to fast recovery was messing up with global variables. Moved it back towards the end of the piston (which I really don’t like, because if the actions time out, no re-subscription happens). When I moved it, I forgot to replace app.id with appId - thus rendering the fast recovery completely useless. Then the stage 1 and stage 2 were also keying on the subscriptions, rather than all pistons (really trying to use less resources) - meaning CoRE was not really recovering anything, unless CoRE > Settings > Recover all pistons was used. Sorry, beginner’s mistake. Lost some customers? (just being goofy now)

For the time being:

  • The play button in the SmartApps page kicks all piston’s butt
  • Stage 1 and 2 recovery also kick all piston’s butt
  • Fast recovery is now working - each piston tells CoRE when it’s supposed to run next, also giving CoRE a chance to check on all others. Once CoRE determines a piston was scheduled to run more than one minute ago, it gives it a nudge via a CoRE Recovery [app id goes here] event.
1 Like