Window always shown as open, regardless of reality

Hi, i use a shelly 2.5 with the shelly integration to open and close some roof windows in my conservatory. I use HA Automations, triggered by temperature and weather.

I can open and close manually via the HA UI and HA correctly registers, that i close or open the window. Regardless, the window always shows as open in the UI and in the history.

Can i set the Window as closed if the close command was used so that i can see if the window is open/ close with a quick look?