In the iOS app, sometimes the window sensor icon appears wrong. Registration is well done in datamine2, but the icon sometimes says that the window is open when it is actually closed and in reverse
Have you tried to uninstall and reinstall the app? It means setting up again, which is a pain.
Another option maybe to delete the icon and add it back in. That has worked for me before.