I think I didin’t understand the idea behind the HTTP binding. I have read the documentation and I’m not sure how to use the “command” feature to implement an external call for openHAB.
I have installed the binding and on the first step I should create a thing. And there is a mandatory field for the “Base URL”. I didn’t have an URL at this time.
I want to call from my BEDDI alarm clock an URL like this “http://OPENHABIP:OPENHABPORT/classicui/CMD?Licht_OG_Schlafen=OFF” and then openHAB (or the HTTP Binding) should update the Item “Licht_OG_Schlafen” (or trigger a rule).I need only the external trigger in openHAB (the rest is ok to script in a rule for example).
I didn’t see in the documentation or the installed binding how to solve that.
with the REST API I can do a call like: http://OPENHABIP:OPENHABPORT/rest/items/Onkyo_Power/state and set the state to “ON” or “OFF”. That works great in the API-Explorer and. For example with CURL and “-d “OFF”” the item is switched off.
I need for my alarm clock an URL like this: http://OPENHABIP:OPENHABPORT/rest/items/Onkyo_Power/state=ON
And this seams not possible with the REST API. I must integrate a JSON or a CURL request to do this (my BEDDI alarm clock only support call a HTTP-URL).
Is there a way to update an item or trigger an item with an “normal URL”?