Please prevent double postings. Instead link to your original post or ask a moderator to move it to the appropriate topic.
Check my response to your same question here: Sonoff 1.13.1 - MINI-ZBRBS reports inverted cover position (0% = open, 100% = closed) - #2 by SunBeech