Hello,
I am trying to get hubitat to send http://IP:PORT/jsonrpc?request={"jsonrpc":"2.0","method":"System.Shutdown","id":1} to a device.
I am unsure on how to use rule machine to send this. Should I be using GET or POST? I have tried both, and the logs show that hubitat is doing something, but it doesn't actually seem to be doing anything at the end device. The above address works if entered into a web browser.
Any thoughts on this would be greatly appreciated.
Thanks for the suggestions.
I tried adjusting the query parameter to say:
" http://IP:PORT/jsonrpc?request={%22jsonrpc%22:%22 2.0%22,%22method%22:%22System.Shutdown%22, "
This did not seem to make any change. It seems like when a person enters a %into this query, Hubitat interprets it as a variable.
I also tried making a local variable set as a string which has not worked either. Currently my rule looks like this:
Install the driver code and create a new virtual device. Put your URL in the preferences setting for either on or off (or both) and flip the virtual switch.
[dev:527]debugSending off GET request to [[](http://192.168.1.64:8080/jsonrpc?request=%3D%7B%22jsonrpc%22.%222.0%22,%22method%22:%22System.Shutdown%22,%22id%22:1%7D)
EDIT: The error above is the same error I get when I enter [](http://192.168.1.64:8080/jsonrpc?request=%3D%22jsonrpc%22.%222.0%22,%22method%22:%22System.Shutdown%22,%22id%22:1%7D) into a browser location bar