I can controll my rollershutter with HTTP-GET. I but i can not get my openHAB2 rollershutter-item working.
In the Events.log i can see the following entrys for each button press in openHAB2
2017-11-18 20:05:24.396 [ome.event.ItemCommandEvent] - Item 'Roll_EG_Test1' received command DOWN
2017-11-18 20:05:24.397 [vent.ItemStateChangedEvent] - Roll_EG_Test1 changed from 0 to 100
But the http-get command will not be send. What am i doing wrong?
All of the examples in the readme are using Switch, String, and Number Items. It might be the case that the HTTP binding does not support Rollershutter Items. If that is the case you will need to use a String or a Switch item bound to the HTTP and a Proxy Rollershutter Item for your sitemap and tires to keep them in sync.
Thanks seems that the exec-binding and http-binding does not support rollershutters,
Is it true that the Item does not handle the commands (ON, OFF, UP, DOWN,…).
The Binding should handle the commands?
I tried to find anything in the http-binding sourcecode to handle the ON,OFF comand but can not find anything.
… you will need to use a String or a Switch item bound to the HTTP and a Proxy Rollershutter Item for your sitemap and tires to keep them in sync.
I don’t know how to do this?!
I solved the problem now with a rule for each item. But i am not really happy with this solution:
/**
* rollershutter rule to support http-binding
*/
rule "RollTest"
when
Item Test2 received command
then
if (receivedCommand==STOP) sendHttpGetRequest("http://192.168.1.3:8088/Control?id=9&cmd=0")
if (receivedCommand==UP) sendHttpGetRequest("http://192.168.1.3:8088/Control?id=9&cmd=1")
if (receivedCommand==DOWN) sendHttpGetRequest("http://192.168.1.3:8088/Control?id=9&cmd=2")
end