Here is the solution how to turn ON/OFF Thing via rules with help of RestAPI
sendHttpPutRequest("http://openhabianpi:8080/rest/things/network:pingdevice:15e46ce9/enable", "application/json", 'true')
where this network:pingdevice:15e46ce9 is thing ID taken for example from here