Author Topic: Delayed Action In Scenes Not Firing  (Read 642 times)

Offline .jake

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Delayed Action In Scenes Not Firing
« on: May 28, 2015, 12:09:30 am »
I have a pseudo-ramp down that seems to mess up.  It's a dimmer that turns on at, say, 18:00 to 40%, then it ramps down to 20% at 1 hour, and at hour 2 it drops again to 1%.

I think I know what's happening but I thought I'd ask here.  Since I'm still working out several other scenes I'm frequently creating or editing other scenes.  The question is, if the ramp down scene is 90 minutes into the 2 hour sequence, and it's already completed the drop to 20%, if I update another scene or otherwise reload Lua, is that why the final 2 hour drop to 1% isn't happening?

TL;DR;
I guess this is the long way of asking if reloading Lua cancels any scenes with delayed actions that have not yet fired?

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Delayed Action In Scenes Not Firing
« Reply #1 on: May 28, 2015, 08:11:29 am »
Yes, reloading the luup engine will cancel all scenes with delays. The best workaround is to use pleg which survives a reload/ restart.


- Garrett

Offline .jake

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: Delayed Action In Scenes Not Firing
« Reply #2 on: May 30, 2015, 04:52:58 pm »
Understood.  Thanks you for confirming this.  I'll look into PLEG.