Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggered Event Questions
#1
I'm monitoring 9 different sensors. If any one of them triggers, I want to run the same action. A triggered event allows me to monitor up to four fields. Should I just set up three triggered events to cover nine sensors (4+4+1) and send them all to a global action?

For each triggered event, What is the best way to store the name of the triggered event field in a variable? Also what is the best way to store the contents of that field in a variable?

Thanks, Richard
My Other web server is Dropbox.
Reply
#2
You don't have to literally use the field name. You can use regular expressions in the comparison values of the filters. Is there any pattern to the field names? If so, we can come up with a regular expression that should match them and only them. If they are from the same device driver, we can also help make sure that the regular expression is unique by also just checking if the trigger is from the driver of interest in a second filter.
Dean Roddey
Explorans limites defectum
Reply
#3
Good idea. I wrote a regex that gets my zones. Now I just need to know how to turn the triggering field and field value into variables.

Thanks, Richard
My Other web server is Dropbox.
Reply
#4
The TrigEvent action target has methods to get information about particular types of triggers, which will include the field name and value.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FEATURE] Event Run Action simplextech 4 116 01-09-2020, 02:04 PM
Last Post: simplextech
  Media playing from Event simplextech 11 219 01-07-2020, 06:09 PM
Last Post: simplextech
  Triggered Event on Timer Question znelbok 7 293 12-09-2019, 02:10 PM
Last Post: znelbok
  Editing Triggered Events Possibly Causing Kernel Panic/Crash gReatAutomation 6 368 11-08-2019, 01:10 PM
Last Post: Dean Roddey
  Pause / Resume Triggered or Scheduled Actions from the Interface Viewer gReatAutomation 2 252 10-30-2019, 01:38 PM
Last Post: gReatAutomation
  Possible Bug with Triggered Events gReatAutomation 3 297 09-19-2019, 02:41 PM
Last Post: gReatAutomation
  Triggered Event and Standard Triggers gReatAutomation 5 377 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 376 08-17-2019, 07:53 AM
Last Post: gReatAutomation
  Use UI to alter scheduled event time IVB 1 249 07-09-2019, 08:42 PM
Last Post: IVB
  Logic Server not sending triggered events znelbok 7 972 05-08-2019, 08:13 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)