a device for automatically compensating the length of cables comprises a length - variable receiving element for a section of a pulling means , a spring element for applying a tensile force on the received pulling means and a locking element , which is rotatable relative to a section of the receiving element about an axis that agrees substantially with the axis of the pulling means , wherein the relative motions of two sections of the receiving device intended to bring about the length variations are coupled to the rotational motion of the locking element by means of mechanical devices with clearance and detent elements substantially block the rotation of the locking element in a direction of rotation .