Hi, how can send command via post like
curl -X POST --header “Content-Type: text/plain” --header “Accept: application/json” -d “OFF” “http://ip_openHAB_host:8080/rest/items/My_Item”
i tryed different way but never do the better result its
[WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Presence_Mobile_John’ with an invalid status value ‘’.
I don’t know much about Android developement, but it seems the value, you’re trying to POST doesn’t fit with the item definition.
e.g. you’re sending an STRING and the item expects an Number.
no the problem is how to generate the post request in “android java” passing this header
–header “Content-Type: text/plain” --header “Accept: application/json”
and this value
-d “OFF” and what do u mead -d
nobody know or do something like that