Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pause Command Seems to be Short
#1
I just set up another motion detector using the Elk that, once triggered, turns on a couple of TV's to display the security cams. 

I use the pause() command in a several of the action commands to wait while the driver switches to analog TV, etc.  I also use it to wait while the cams are displayed before going back to whatever the TV was doing before.

What I noticed was, during the long pause - ie 800,000 millisecs while the video stream is being output to the TV, that it only goes for about 190,000 millisecs.  Is there a better way to do this?  

Essentially I want the TV to display the cams for about 10 minutes, then go back to what they were doing, either off, or the programming they were on.    It seems like the millisecs entered in the command is not the real time it pauses.
Reply
#2
There is a limit on the time, but it should be the same limit as what is enforced by the action editor. You don't typically want to have actions blocking for long periods of time.

A common way to do it is to use a timed field write. That's not very practical if you need to do a bunch of stuff. But if you just need to change a field in each TV's driver, then it would be fine. It also has the benefit that, if you write to the field some other way, the timed write is cancelled. If you do it via a blocked action, that guy is still there and might fight you if you chose to get back to the TV and set it to some other input. The action would wake up later and set it back to whatever it was before, whereas the timed write would have been cancelled.

And, if you mange to trigger the action more than once, you don't have multiple actions piling up. One timed write just overwrites the previous one.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable Action "Find" command or alternate Shaky 3 847 11-02-2021, 08:19 PM
Last Post: Shaky
  Pause / Resume Triggered or Scheduled Actions from the Interface Viewer gReatAutomation 2 2,335 10-30-2019, 01:38 PM
Last Post: gReatAutomation
  Sonos - PlayFovorite command NightLight 22 7,705 05-10-2019, 09:32 PM
Last Post: kblagron
  template timeouts and LoadOverlay command Shaky 9 4,261 04-29-2019, 07:46 PM
Last Post: kblagron
  Hiding Command Buttons on template kfly 5 3,276 12-14-2018, 06:52 PM
Last Post: Dean Roddey
  Need some help with DynamicOverLoad command adamalli 14 5,324 08-30-2018, 04:49 PM
Last Post: Dean Roddey
  With Echo integration is it possible to have a set and a query with the same command? ghurty 9 5,192 07-12-2018, 08:43 PM
Last Post: Dean Roddey
  Command Line Switches for installation/upgrade batwater 3 3,080 03-26-2018, 06:24 AM
Last Post: batwater
  We may be down for a short while today Dean Roddey 1 1,466 01-05-2018, 10:06 AM
Last Post: Dean Roddey
  Possible to suspend an ELK zone via a command? ghurty 4 3,341 03-24-2017, 04:59 AM
Last Post: wuench

Forum Jump:


Users browsing this thread: 1 Guest(s)