Is it possible to restart things programaticaly with scripting?

I’ve this binding defined as a thing:

KNX/IP Gateway - This is a KNX IP interface or router

I want to restart this “Thing” with scripting, can i do it with rule files or any other script ?

What do you mean by „restarting“?

enable/disable

At the moment you can do that by using the REST API
In the rules you can use the sendHttpGetRequest action to call the API

thanks, exactly what I was looking for.I did it this way:

Enable:

curl -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” -d “true” “http://192.168.1.100/rest/things/knx:ip:bridge/enable

Disable:

curl -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” -d “false” “http://192.168.1.100/rest/things/knx:ip:bridge/enable

1 Like