Run a command and return HSM back to previous status

You can capture the current mode in a variable and use it in your rule. See this example by @bertabcd1234 on capturing the mode:

3 Likes