I am using Rule Machine.
So, you create one virtual switch each for each mode you want to control (e.g., disarm switch, alarm stay). Set your virtual switch to auto turn off after 500 ms (that's long enough for Rule Machine to pick it up).
Create the rule like I posted above.
Each mode type in the panel driver has some attributes that must be included. Like "Arm Stay" needs to have the partition_id and bypass attributes passed (the user code too if you have secure arming enabled). Partition_id and bypass are both strings.
For example
Trigger: 'AlarmStay Switch' is turned on
Action:
Put the IF statement in. This is how to set the actuator action:
@user2173 were you able to get this setup? I can do some more screenshots or a video.