noushadali / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

http binding #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
That are the setting for Items. 

Switch Light_GF_Corridor_Ceiling    "Ceiling"       (GF_Corridor, 
Lights){http=">[ON:POST:http://192.168.0.177/home/lights/23871/?status=on] 
>[OFF:POST:http://192.168.0.177/home/lights/23871/?status=off]"}

Status changes no matter the correct answer. I think receiving feedback is 
normal. When you get HTTP /1.1 200 OK status should change,and if you get 
timeout or other error like 404, it shouldn't. This is necessary because 
communication problems might cause differences between the real state of the 
device and openhab status. 

Original issue reported on code.google.com by Miroslav...@gmail.com on 17 Feb 2013 at 1:14

GoogleCodeExporter commented 9 years ago
The status update is not done by the http binding at all, but by the autoupdate 
binding. To disable the update, you could add

{ http="...", autoupdate="false" }

Original comment by kai.openhab on 17 Feb 2013 at 2:06

GoogleCodeExporter commented 9 years ago
When I do this the openhab status doesn't change, only sends command on. The 
answer of the request is: "HTTP/1.1 200 OK \r\nContent-Type: text/html\r\n\r\n"

Original comment by Miroslav...@gmail.com on 17 Feb 2013 at 6:58

GoogleCodeExporter commented 9 years ago
That's the expected behaviour, the HTTP OUT binding does not support any status 
update as a feedback.

Original comment by kai.openhab on 19 Feb 2013 at 8:41