Pushbutton for openhab2

I guess it´s not instantly changing because it´s non blocking event driven. So it pushes the message to event bus and all the subcriber to this bus will retrieve the message and perform the action.

This will happen async and you can´t work with this in a syncronous way.

I am not sure, but may be this can help you. This rule is using some locking mechanism to prevent race conditions. Program Rollershutter with GUI