Alarm Triggers in PLEG

I’m a little confused with the various states that PLEG shows me through my AD2USB/DSC plugin. Basically, i’m looking for two different types of alarm states, but I think PLEG may think of them as the same, and I want to make sure I’m doing it correctly.

One trigger I want is when the alarm is Disarmed - meaning the trigger is the actual action of turning the alarm off. This, coupled with day+night, might invoke a scene to turn on some lights for me at night.

The other is more of a condition, that the alarm is off. Meaning that used in a scene, the scene won’t run unless the alarm is already off - so in my case, the scene to turn my bedroom lights on at night only occurs if i’m home (e.g. alarm is off).

In PLEG, if I pick alarm as trigger, I get three different event types:
Armed State
Device is Armed
Device is Disarmed
Armed Detailed State
Device is Armed AWAY
Device is Armed MAXIMUM
Device is Armed STAY
Device is Armed INSTANT
Device is Armed NIGHT-STAY
Device is READY to arm
Device is NOT READY to arm
Device is in EXIT DELAY
Alarm Active
Device: Alarm is ACTIVE
Device: Alarm is CLEARED

Any idea which I might use for which scenario above?

Thanks!

Both things that you want are the same and use the same trigger. Which is “Armed State” and “Device is Disarmed”.

The difference is more in how you word it in PLEG and if it repeats or not.

Disarmed + night = lights on would work fine except for if the alarm was disarmed then sometime later the virtual switch turned to night the lights would come on then, as both would be true.

To fix this you would add (Night; Disarmed) to the mix to say it has to be NIGHT before I disarmed it.

Disarmed and night and (Night; Disarmed) would be how you wrote that

Same goes for you second request. If you want it to be disarmed first then something you write (disarmed; ThenSomething)