Roborock Automation with xiaomi mi integration help please

I’ve only had my roborock for about a month but in my quest to automate it I found this post to be helpful for changing the various modes. Even though it was for the S7 the values so far to seem to be the same for the S8. Hope this is helpful for you as well.