Hi,
I’m trying to change the state of an item via the REST API.
I can control the item via the PaperUI interface and the innogy SmartPlug changes its state.
But if I try to change the state via the following REST requests then the device does not react.
$ curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" -d "ON" "http://localhost:8080/rest/items/PSSSmartplugRo_Switch/state"
$ curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" -d "OFF" "http://localhost:8080/rest/items/PSSSmartplugRo_Switch/state"
I receive a 202 Accepted response and the PaperUI also indicated the change but the device does not switch.
I’m using the following versions:
openhab2 / 2.3.0-1
http://localhost:8080/rest - “version”: “1”
REST Documentation / misc-restdocs - 2.3.0
innogy Smarthome Binding / binding-innogysmarthome - 2.3.0
Thanks!