Announcement

Collapse
No announcement yet.

Scripting help for an alarm status generated event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scripting help for an alarm status generated event

    I have the Vista Alarm PI... and i'm using Easy Trigger to kick off an event based on a status change in the alarm. Basically (e.g.) from "armed-away" to "disarmed-ready".

    The issue is that if you happen to set off the motion sensor before you turn off the alarm, it will change the alarm partition and status to "faulted".. so then my logic when you turn off the alarm no longer holds true.

    but the real issue is that this triggers constantly all day if there is motion, so i can't add an "and or" to the event for "faulted" to "disarmed-ready", or it would run the event every time someone tripped the motion sensor.

    any ideas how i can full proof this?
    Click image for larger version

Name:	Capture1.PNG
Views:	80
Size:	22.0 KB
ID:	1253454Click image for larger version

Name:	Capture2.PNG
Views:	81
Size:	55.8 KB
ID:	1253455

    #2
    A bit kludgy, but here's an idea that uses 3 separate events that might work:

    IF status was Armed Away and becomes Disarmed Ready
    THEN set VirtualDevice ON
    THEN set VirtualDevice OFF after waiting x minutes or seconds

    IF status was Armed Away and becomes Disarmed Ready
    THEN [action]

    IF status was Faulted and becomes Disarmed Ready
    ANDIF VirtualDevice is ON
    THEN [action]
    [set event option: cannot rerun for y minutes or seconds (y>x)]
    -Wade

    Comment

    Working...
    X