Tasker to control modes?

It’s pretty easy to do.

If you follow the instructions found here

Once you get to step 7, you can use those URLs and send HTTP get requests using tasker and it will send the corresponding command