How to figure out blinds position?

I’ve 3 Fibaro rollershutter modules FGR-221 in use with OpenHab on a Raspberry. They work well.
Now I’d like to setup a rule depending on the current position of the shutters. Idea is to setup a rule that runs if the shutters are fully up/open and run another rule if the blinds are manually set (by the switches) to a position around 90% open…kind of manually override the “closing automatic” without the need to use OpenHab-App or Browser.

Thanks
Beat

You will probably need to implement this in the rule as opposed to creating a new rule for each case. You do this by using an if/else statement.

if(ShutterState.state == 100) {
    // do stuff
}
else {
    // do stuff
}

Thanks for your answer. I already tried it this way but the problem was, that I had to configure parameter 3 “Reports type” to “Blind position reports sent to the main controller using Z-Wave Command Class.” first.
Afterwards I had to start a “Forced Roller Shutter Calibration” via parameter 29. Now I can check the position in rules.

Thanks again
Beat