How to correct shift in roller shutter position

Hello,

I use the fibaro fgr 222 for my roller shutters. Unfortunately there is a small shift in the position value. E.g when the shutter is open it states 99% and not 100%. This shift gets worse over the time and the roller shutter has to be recalibrated.

To avoid this I want to correct the position value 15 seconds after a shutter has been moved:
if position > 98% set position to 100%
if position < 2% set position to 0%

How could this automation be done for a group of roller shutters?
Thanks!

You need a way to detect if the roller shutters are in fact physically at 100% or 0%.
If you have no way to detect this, then only manual calibration is possible.