Hello,
I want to using the openHAB REST-API for control my shutter.
This statement is my mission to rebuilt with homey:
curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d "DOWN" "http://openhab:8080/rest/items/RaffstoresAlle"
I tried it with the following:
URL:
{"method":"post","protocol":"http:","hostname":"openhab:8080","path":"/rest/items/RaffstoresAlle","headers":{"Content-Type":"text/plain","Accept":"application/json"}}
Data: I tried the following:
"DOWN"
["DOWN"]
{"DOWN"}
I always get the following error message:
Promise was rejected with falsy value
Can someone help me? ![]()
At the moment I setup a small lighttpd server with a php script on my pi which sends this commands and only use http flow cards to issue simple get_requests, which works.
But nevertheless I’m interested how it works directly from homey
.