I wrote a script that will monitor my domotica setup (http://www.velbus.eu/).
Whenever an item is changed, I use the REST API to push this change openHAB.
At the same time, the item has a http binding configured so when the item is changed when you click in the GUI of openHAB, this change triggers a webservice to commit this change to the velbus modules.
This is working fine, but it can cause a loop because the REST API update also triggers the webservice to commit this change to the velbus modules. And this in turns triggers a REST API call and so on.
I solved this by storing the state in a MySQL database and only let the webservice do something when the change is really changing.
But still, this can go wrong.
So, is it possible to use the REST API to update the state of an item (so without sending a command to the item)?
Or is there an other way I can update the state of an item without triggering the http binding?