Cannot get disarm to work!

I am still struggling with PLEG to recognize when I disarm my alarm and properly evaluate a condition. Arming in stay or away mode works fine. Pleg conditions true/false know the stay and away condition. My problem is disarming. When I disarm, PLEG sees both my conditions for disarm stay and disarm away as true at the same time. I need only the correct disarm to go true.

Triggers;
Armed_Stay_t27 Partition 1: Area 1 is armed Stay
Armed_Stay_Instant_t28 Partition 1: Area 1 is armed Stay Instant
Armed_Away_t4 Partition 1: Area 1 is Armed

Properties;
Arm_Mode_p2 Partition 1: Area 1 ArmMode
Armed_State_p1 Partition 1: Area 1 DetailedArmMode

Conditions;
Armed_Stay_c1 No (!Armed_Stay_t27;Armed_Stay_t27) OR (!Armed_Stay_Instant_t28;Armed_Stay_Instant_t28)
Armed_Away_c2 No Armed_State_p1 eq “Armed”
Disarmed_Stay_c3 No (Armed_Stay_c1;!Armed_Stay_c1) AND Mode_Disarmed_c10
Disarmed_Away_c6 No !IsNight_t15 AND (Armed_Away_c2;!Armed_Away_c2) AND Mode_Disarmed_c10

So when I disarm, c3 AND c6 always go to true. This is my problem.

Please help me to sort this out.

Perhaps you would get better results by using the Device Properties instead of the Triggers. If you know what values of ArmMode and DetailedArmMode represent the states you want to recognize, add Conditions with string comparisons to indicate when those states are active.

I Finally solved it!

I made 2 new inputs

MS_Away_On_t33 MultiSwitch Switch 4 is turned on
MS_STAY_on_t32 MultiSwitch Switch 3 is turned on

Changed my conditions to

Disarmed_Away_c6 No !IsNight_t15 AND (Armed_Away_c2;!Armed_Away_c2) AND MS_Away_On_t33 AND Mode_Disarmed_c10
Disarmed_Stay_c3 No (Armed_Stay_c1;!Armed_Stay_c1) AND MS_STAY_on_t32 AND Mode_Disarmed_c10

In actions I added a 5 sec delay so that after the system is disarmed, it will turn off the multiswitch

This seems to be working. Now PLEG knows if I disarmed from stay or away mode. WOOT!

Thanks Rex for the reply.