Enable and disable rule events on multiple cameras with one soft trigger.

In Progress

Comments

4 comments

  • Avatar
    Jaemyn Kinney

    Might be hacky but use the soft trigger to generate a generic event or something, then 5 rules to run the relevant API call per camera?

    There was talk years ago about some added complexity to the rules engine that might of solved this, but that looks to have gone silent as of late. Might see something in an upcoming release.

    0
    Comment actions Permalink
  • Avatar
    Mark Paton

    Thanks Jaemyn, I'll look into that.

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hello,

    Here are some details to add to what Jeamyn recommends.

    The approach could be the following.

    1. You create a Generic Event rule per a rule you need to turn on.

    These rules have the same caption or description, say say the "TURNON" caption and different "DoHTTP request" part having different rule ids.

    2.  You create a Generic Event rule per a rule you need to turn off.

    These rules have the same caption or description, say the "TURNOFF" caption and different "DoHTTP request" part having different rule ids

    3. You create a Soft Trigger rule to trigger the Generic Events configured in step 1 via DoHTTP request to turn rules off

    {
    "timestamp": "2016-09-16T16:02:41Z",
    "caption": "TURNOFF",
    }
     
    4. You create a Soft Trigger rule to trigger the Generic Events configured in step 2 via DoHTTP request to turn rules on
    {
    "timestamp": "2016-09-16T16:02:41Z",
    "caption": "TURNON",
    }
     
    0
    Comment actions Permalink
  • Avatar
    Mark Paton

    Much appreciated Andrey, thanks! I'll probably need to read up on how to configure generic events as I've not worked with them before. Thanks for pointing me in the right direction guys, I'll try that out.

    0
    Comment actions Permalink

Please sign in to leave a comment.