Trigger actions on mode change

Check out the SmartApp I made for Foscam cameras. It looks like it’s basically the same idea as what you are trying but with a Foscam alarm and the mode is not hard-coded. It allows multiple mode selections and there are notifications and working times also. You can just add another input and another mode check for ArmStay for your situation.