One of the ways of shutting down OSMC besides using the yatse remote is to use curl along with json rpc to shut down the raspberry pi.

If you try the http get like the below, it will fail


You would instead need to encode the url like the below.


Of course you also need to ensure that the port is correct and http is enabled for your OSMC. in my case the port was 80 so that was not a problem.