The “addons” part (localhost:8080/rest/addons/binding-zwave) but that does only give general information
The “actions” part (localhost:8080/rest/actions/zwave%3Aserial_zstick%3A8c6eb44bfc) but that gives a HTTP 404 Not found.
Am I looking in the good direction?
Or would there be a totally different way?
Perhaps a openhab-cli command ?
What way is de UI using to start the exclude?
The background of this question: I’m trying to make a hand-crafter Zwave.things file. That is possible, and I can add devices using the “inbox” and “discovery” commands in the API, but now I have no idea how to exclude …
To be complete, the whole commands I used (in addition to the API-explorer). The API-token is placed in Linux environment variable $BEARER. This token works with other commands.
Thanks Wolfgang! That was it!
For an important part at least.
I’m now able to initiate a Zwave exclusion process via this command below. Note the string “controller_exclude”: true (of course, you have to supply your own Zwave id, do not use mine “8c6eb44bfc”, create the $BEARER environment variable with your token, and create the full config record even voor items you do not change):
I had to repeat the whole config to prevent this error message:
No message body writer has been found for class java.util.Collections$UnmodifiableMap" ```
However, this curl command ONLY works if you have a zwave things file generated by the OpenHAB Userinterface. If you manually make a Zwave.things file, there is nothing OH can do for you, you get the respone:
"error": {
"message": "Cannot update Thing zwave:serial_zstick:controller as it is not editable.",
"http-code": 409
},