Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Motion Event Running Twice?
#1
Hi Dean, 

I was experimenting with building a tragectory of my motion sensed location. 

I have a variable driver field called lastknownposition. Each time I go through a motion sensor it updates with that zones location id. 

So I decided to build a history, by creating a second field called previousknownposition. 

In the motion event I update the previous with the last and then update the last, but what is happenening is that for a second it's working then after 5 seconds the prev gets updated with the last. Not desired, obviously. 

I put a pause(1000ms) in there in case a race situation was occuring, but that didnt do anything. 

EventDump shows: 

EvID=976FB93961A74C47-91154AEABB4A0249
cqsl.header
{
    v=1
    sysid=A4EC6719AFC37DC2-552EE5D99872167E
    class=cqsl.motion
    source=cqsl.field:ELK.MOT#LFTPiv
}
cqsl.motioninfo
{
    type=start
    sensornum=56
    name=LFTPiv
}

EvID=976FB93961A74C47-91154AEABB4A024A
cqsl.header
{
    v=1
    sysid=A4EC6719AFC37DC2-552EE5D99872167E
    class=cqsl.fldchange
    source=cqsl.field:LogicSrv.MotionDetected
}
cqsl.fldval
{
    val=True
}

EvID=976FB93961A74C47-91154AEABB4A024B
cqsl.header
{
    v=1
    sysid=A4EC6719AFC37DC2-552EE5D99872167E
    class=cqsl.motion
    source=cqsl.field:ELK.MOT#LFTPiv
}
cqsl.motioninfo
{
    type=end
    sensornum=56
    name=LFTPiv
}

Any idea what might be going on?
Reply
#2
One of them is the start of motion and one of them is the end of motion. So you want to filter for a motion start event and ignore the motion end. So just add another filter to the event to check for start motion, in addition to the one you are doing to check for a specific motion field.
Dean Roddey
Explorans limites defectum
Reply
#3
(07-31-2017, 08:03 PM)Dean Roddey Wrote: One of them is the start of motion and one of them is the end of motion. So you want to filter for a motion start event and ignore the motion end. So just add another filter to the event to check for start motion, in addition to the one you are doing to check for a specific motion field.

Boom. That worked. 

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Event Server Error Bugman 4 255 06-05-2022, 08:54 AM
Last Post: Bugman
  Triggered Event w/ Elk AreaArm EST 18 6,017 12-04-2020, 05:37 PM
Last Post: gReatAutomation
  Triggered Event only works every second time znelbok 2 1,043 10-27-2020, 12:05 PM
Last Post: znelbok
  Error Running Installer to Enable SSL gReatAutomation 2 1,114 10-26-2020, 07:41 AM
Last Post: gReatAutomation
  Global Variables in the Event Server context lleo 1 1,067 05-16-2020, 11:21 AM
Last Post: Dean Roddey
  [FEATURE] Event Run Action simplextech 4 2,421 01-09-2020, 02:04 PM
Last Post: simplextech
  Media playing from Event simplextech 11 3,945 01-07-2020, 06:09 PM
Last Post: simplextech
  Triggered Event on Timer Question znelbok 7 3,412 12-09-2019, 02:10 PM
Last Post: znelbok
  Triggered Event and Standard Triggers gReatAutomation 5 2,061 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 2,404 08-17-2019, 07:53 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)