The windows have an electrical contact that disconnects the air conditioner in case of opening.

By means of the remote control, you can verify and choose the mode of operation to your liking.