5iver
(Scott Rushworth)
March 29, 2019, 4:16pm
6
Use your browser’s development tools (usually F12) to view the calls being made when selecting reinitialize device. Then use those in RESTDOCS to test it, and it will also provide the curl statement…
curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" -d "{action_reinit: true}" "https://<your_OH_server>:8443/rest/things/<your_Thing_UID>/config"
There are some examples of using the REST API in a DSL rule here…
OH2 does not currently have a mechanism for updating Thing types. When a binding update includes new or modified Channel definitions, the Thing needs to be manually deleted and recreated in order to use the new/modified Channel. For most bindings, it is not too cumbersome to do this manually. But when you are using the Zwave binding with ~120 devices, this can be a real headache. Here is an example of how I have automated the deletion, rediscovery, and reconfiguration of my Zwave Things. I run t…