Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FEATURE] Event Run Action
#1
Would it be possible to add a right-click option to Events with a 'Run Action' for the Event?  This would make it much easier to test Event Actions and simulate them without the need for a working trigger or having to walk around to a motion detector to trigger it and check if things worked Smile
Reply
#2
(01-09-2020, 09:34 AM)simplextech Wrote: Would it be possible to add a right-click option to Events with a 'Run Action' for the Event?  This would make it much easier to test Event Actions and simulate them without the need for a working trigger or having to walk around to a motion detector to trigger it and check if things worked Smile
What I do is paste the action from the triggered event into a scheduled event, then test it there.  Set it up for 1 day, as a one time trigger will delete after running once.  I created a subfolder under Scheduled Triggers called "test", and store them there.  You can leave these disabled, and they won't actually run unless you enable them, or test them.

Usually I get the trigger working in the scheduled event first, and then once I know it works, paste it over to the triggered event.
Reply
#3
(01-09-2020, 09:51 AM)kblagron Wrote:
(01-09-2020, 09:34 AM)simplextech Wrote: Would it be possible to add a right-click option to Events with a 'Run Action' for the Event?  This would make it much easier to test Event Actions and simulate them without the need for a working trigger or having to walk around to a motion detector to trigger it and check if things worked Smile
What I do is paste the action from the triggered event into a scheduled event, then test it there.  Set it up for 1 day, as a one time trigger will delete after running once.  I created a subfolder under Scheduled Triggers called "test", and store them there.  You can leave these disabled, and they won't actually run unless you enable them, or test them.

Usually I get the trigger working in the scheduled event first, and then once I know it works, paste it over to the triggered event.

I had been testing in the GlobalAct area which has a nice Run function for testing.  I did not think to try and do a copy/paste from the Event action editor and paste it into the GlobalAct editor.  I just tried it and it works.  

Although I still think this would be a "nice" feature there is a work around already.  Thanks for the idea @kblagron around the copy/paste.
Reply
#4
You can test scheduled events. But the problem with triggered events is that they often depend on the incoming trigger, which won't exist. There would have to be some sort of way of generating fake trigger data, which would be kind of messy.
Dean Roddey
Explorans limites defectum
Reply
#5
(01-09-2020, 01:32 PM)Dean Roddey Wrote: You can test scheduled events. But the problem with triggered events is that they often depend on the incoming trigger, which won't exist. There would have to be some sort of way of generating fake trigger data, which would be kind of messy.

For complex triggers and data that is true.  Yet the majority of triggered events are probably simple triggers which wouldn't require any messy simulated trigger data.  Just the ability to run the action without the "if" part of the statement.  Now that I tested that I can just copy paste the whole action into the GlobalActs to run there that will suffice but it would be a nice feature that would I think account for the majority of triggered events for testing.  There's always going to be those that are too complex for simulated testing.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  6.0.0 Interface Viewer - Action Trace Mark Stega 1 149 03-09-2021, 06:39 PM
Last Post: Dean Roddey
  Triggered Event w/ Elk AreaArm EST 18 4,720 12-04-2020, 05:37 PM
Last Post: gReatAutomation
  Triggered Event only works every second time znelbok 2 590 10-27-2020, 12:05 PM
Last Post: znelbok
  Escaping Character in Action Parameters gReatAutomation 0 285 09-02-2020, 05:51 AM
Last Post: gReatAutomation
  Global Variables in the Event Server context lleo 1 588 05-16-2020, 11:21 AM
Last Post: Dean Roddey
  Action wait and exit if variable changes simplextech 8 1,822 02-01-2020, 12:35 PM
Last Post: simplextech
  Media playing from Event simplextech 11 2,676 01-07-2020, 06:09 PM
Last Post: simplextech
  Triggered Event on Timer Question znelbok 7 2,240 12-09-2019, 02:10 PM
Last Post: znelbok
  Triggered Event and Standard Triggers gReatAutomation 5 1,341 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 1,434 08-17-2019, 07:53 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)