should do it, maybe you have to test another transformation service, like REGEX or Java Script.
Be aware, that the binding definition above calls the address every 30 seconds, so the item Status could be not up-to-date if you open the UI.
Normally the item status should be set to the last sent status from openHAB automatically, except you set autoupdate=false for this item (which you did not…), I have no idea why this does’nt happen…
Adding this here as it may help others. I struggled to get the http binding working with Openhab2, as such I was able to get the switches working through rules.
rule "kankun3 ON"
when
Item kankun3 received update ON
then
sendHttpGetRequest("http://192.168.0.166/cgi-bin/relay.cgi?on")
end
rule "kankun3 OFF"
when
Item kankun3 received update OFF
then
sendHttpGetRequest("http://192.168.0.166/cgi-bin/relay.cgi?off")
end
Probably a terrible way to do things but it works…