[SOLVED] Enabling and disabling Things from for example Basic UI

Ha! I found a solution. Seems like my openHAB2 needs other parameters. :smiley:

Disable Thing:

sendHttpPutRequest("http://<ip>:8080/rest/things/<thinguid>/enable", "application/json", 'enabled')

Enable Thing:

sendHttpPutRequest("http://<ip>:8080/rest/things/<thinguid>/enable", "application/json", 'true') 

Thanks for your help! :slight_smile:

3 Likes