Switch on the air conditioner 30 minutes to 1 hour before bedtime to cool down the bedroom. Switch it off and turn on the fan just before you go to bed.