This is what you are looking for Change modes via REST API?
You will need to create a virtual switch for each mode that you want to switch to. You can then use tasker to do an http get to send an on/off to the virtual switch and then create a tasker widget on your home screen for this. This gives you a widget on your home screen that allows you to arm and disarm the smart alarm based on the mode that you switch to. I actually have an android tablet mounted inside my garage door that works as my alarm panel. I have the arm and disarm buttons with nice green and red shield .png for the widget icons and then a system lock tasker widget with a lock .png. I also have pushbullet notifications that update a minimal text widget to show the current mode.
This would be much easier if there were native android widgets for this type of behavior though… wouldn’t it @Ben?